Age | Commit message (Collapse) | Author |
|
* pager.c, pager.h: New file.
* Makefile (SRCS): Add pager.c.
(LCLHDRS): Add pager.h.
* display.c: Do not include <hurd/pager.h>, <sys/mman.h>,
<sys/io.h>, <fcntl.h> and <sys/fcntl.h>. Include <hurd/ports.h>
and "pager.h".
(struct display): Replace member PAGER and MEMOBJ with USER_PAGER.
(display_get_filemap): Implement with user_pager_get_filemap.
(user_destroy): Implement with user_pager_destroy.
(user_create): Implement partially with user_create.
(display_init): Call user_pager_init.
(struct user_pager_info, pager_bucket, pager_clear_user_data,
pager_read_page, pager_write_page, pager_unlock_page,
pager_report_extent, pager_dropweak, service_paging_requests):
Move to ...
* pager.c: ... here.
|
|
* console.c: Include <mach.h>.
(netfs_S_dir_notice_changes): New variable PREQ. Clean out the
dead wood, eh, dead name notifications from the CONS->dirmod_req
list.
* display.c (struct user_pager_info): Drop members DISPLAY and P.
(struct display): Remove member UPI and add member PAGER.
(pager_report_extent): Remove local variable DISPLAY, use UPI
directly.
(user_create): New variable UPI to hold the user pager info.
Modify the code to match new struct organization.
(user_destroy): Unmap the user data.
(display_notice_changes): Request dead-name notifications.
(free_modreqs): Cancel dead-name notification request before
deallocation send right.
(display_notice_filechange): Likewise.
(do_mach_notify_msg_accepted): Likewise.
(display_destroy): Take DISPLAY->lock while operating. Reset the
filemod_reqs and filemod_reqs_pending members of DISPLAY to NULL.
(do_mach_notify_port_deleted): Add comment.
(do_mach_notify_dead_name): Implement.
(do_mach_notify_no_senders): Implement by delegating to libports.
(do_mach_notify_send_once): Don't fail.
|
|
|
|
* vga-support.c (vga_read_write_font_buffer): New function. It
turns out that reading and writing needs the same register
settings.
(vga_write_font_buffer): Implement in terms of
vga_read_write_font_buffer.
(vga_read_font_buffer): Likewise.
|
|
2002-09-18 Marcus Brinkmann <marcus@gnu.org>
* console.h (struct cons_display): Add a new flag
CONS_FLAGS_TRACK_MOUSE.
(CONS_MOUSE_BUTTON_MASK, CONS_MOUSE_BUTTON1, CONS_MOUSE_BUTTON2,
CONS_MOUSE_BUTTON3, CONS_MOUSE_RELEASE, CONS_MOUSE_MOD_MASK,
CONS_MOUSE_MOD_SHIFT, CONS_MOUSE_MOD_META, CONS_MOUSE_MOD_CTRL,
CONS_MOUSE_OFFSET_BASE, CONS_MOUSE_EVENT_LENGTH,
CONS_MOUSE_EVENT_PREFIX, CONS, MOUSE_EVENT): New macro.
(CONS_KEY_B2): New macro.
console/
2002-09-18 Marcus Brinkmann <marcus@gnu.org>
* hurd.ti: Enable <kb2> and <kmouse>, fix the comments.
* display.c (handle_esc_bracket_question_hl): Handle escape
bracket 1000 h/l for XTerm-like mouse tracking enable/disable.
|
|
* display.c (handle_esc_bracket): Use scrolling region for <ind>,
<indn>, <ri>, <rin>, <il1>, <il>, <dl1> and <dl>. Also fix
off-by-one error in <ri>, <rin>.
|
|
* ncursesw.c: Add an entry for the clear function.
* pc-kbd.c (sv_to_kc): Add entries for unused scan codes 0x55 and
0x56.
|
|
* hurd.ti: Change <gsbom> and <grbom> to escape bracket
right-angle sequences. Add <csr>, <smir>, <rmir> and <mir>,
disable <ich1>.
* display.c (handle_esc_bracket_m): Map \E[21m to normal intensity
(as a way to switch off bright intensity).
(handle_esc_bracket): Fix calculation of fill area for <ech>.
(struct scrolling_region): New type.
(struct display): New members INSERT_MODE and CSR.
(display_output_one): For <rs2>, also reset DISPLAY->insert_mode
and DISPLAY->csr.
(display_create): Initialize DISPLAY->csr.bottom.
(display_output_one): If in insert mode, shift to the right before
printing the character.
(linefeed): Take scrolling region into account.
(handle_esc_bracket): Switch the meaning of 'h' and 'l'.
(handle_esc_bracket_question): Likewise.
(handle_esc_bracket_question_hl): Switch the interpretation of
FLAG.
(handle_esc_bracket_hl): Likewise. Add support for insert mode
<smir> and <rmir>.
(struct parse): New state STATE_ESC_BRACKET_RIGHT_ANGLE.
(display_output_one): Handle STATE_ESC_BRACKET_RIGHT_ANGLE.
(display_output_one): Move the bold attribute handling from here
(<PU1>, <PU2>) ...
(handle_esc_bracket_right_angle_hl): ... to here. New function
handling <gsbom> and <grbom>.
(handle_esc_bracket_right_angle): New function.
(handle_esc_bracket): Implement <csr>.
|
|
|
|
|
|
* elfcore.c [i386_THREAD_STATE] (fetch_thread_regset): The two types
are not actually identical, must rearrange some members a little.
|
|
* Makeconf (CPPFLAGS): Move -std=gnu99 option to ...
(CFLAGS): ... here.
pfinet/
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* Makefile: Revert last change.
* glue-include/asm/spinlock.h (SPIN_LOCK_UNLOCKED): Do not use a
compound literal, which is not constant.
|
|
* input.c (input_enqueue): Initialize ERR.
* bdf.c, bdf.h, display-drv.h, dynafont.c, dynafont.h, focus.c,
focus.h, input-drv.h, main.c, ourfs_notify.defs, vcons.c, vcons.h,
vga.c, vga-display.c, vga.h, vga-hw.h: Obsolete files removed.
|
|
* changelog: Update for new Debian package.
|
|
* pc-kbd.c (input_loop): Move code that toggles NumLock after code
that handles direct entry of character codes with RightAlt.
|
|
* opts-std-startup.c (OPT_NO_JUMP_DOWN_ON_INPUT): New macro.
(OPT_NO_JUMP_DOWN_ON_OUTPUT): Likewise.
(_cons_jump_down_on_input): Default to 1.
(startup_options): Add new options --no-jump-down-on-input and
--no-jump-down-on-output.
(parse_startup_opt): Handle these new options.
|
|
* display.c (handle_esc_bracket_m): Really disable italics on
<ritm>.
|
|
* Makefile: For now, filter -std=gnu99 out of CPPFLAGS.
|
|
* Makefile (prog-subdirs): Add console-client.
sutils/
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* MAKEDEV.sh (mkdev: vcs): New console device.
(mkdev: tty[0-9a-f]|tty[0-9][0-9a-f]): Replaced with new rules for
tty[1-9][0-9].
utils/
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* console-ncurses.c: File removed (the ncursesw console client is
now a driver in the console-client).
* Makefile: Revert 2002-08-22 change:
Do not include`../config.make'.
(targets) [LIBNCURSES]: Removed.
(SRCS) [LIBNCURSES]: Likewise.
(HURDLIBS) [LIBNCURSES]: Likewise.
(console-ncurses): Target removed.
(console-ncurses-CPPFLAGS): Removed.
(console-ncurses-LDLIBS): Likewise.
console-client/
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* Makefile, bdf.c, bdf.h, bell.h, console.c, display.h, driver.c,
driver.h, generic-speaker.c, input.h, pc-kbd.c, timer.c, timer.h,
unicode.h, vga.c, vga-dynacolor.c, vga-dynacolor.h, vga-dynafont.c,
vga-dynafont.h, vga-hw.h, vga-support.c, vga-support.h: New file.
|
|
* cons.h: Add prototype for cons_vcons_clear.
* file-changed.c (cons_S_file_changed): Prepare all areas we write
to with cons_vcons_clear (unless we use cons_vcons_scroll
already).
* vcons-refresh.c (cons_vcons_refresh): Likewise.
* vcons-scrollback.c (_cons_vcons_scrollback): Likewise.
|
|
2002-09-16 Marcus Brinkmann <marcus@gnu.org>
* console.h (conchar_attr_t): Add bits for italic and bold text
attributes.
console/
2002-09-16 Marcus Brinkmann <marcus@gnu.org>
* hurd.ti: Add capabilities <sitm>, <ritm>, <gsbom>, <grbom>.
* display.c (handle_esc_bracket_m): Add support for italic.
(display_output_one): Add new capabilities PU1 and PU2 to toggle
bold mode. Reset PARSE->state on most escape sequences.
* console.c (parse_attributes): Rename old bold attribute to
bright. Add support for italic and bold.
|
|
* opts-std-startup.c (parse_startup_opt): Use argp_error instead
argp_usage for error. Replace case for ARGP_KEY_END with case for
ARGP_KEY_NO_ARGS.
|
|
* getty.c: Include <termios.h>.
(set_speed): New function.
(main): Take linespec from argc[1], not argc[2]. Call set_speed.
|
|
change with _on_.
|
|
* Makefile (SRCS): Add vcons-input.c.
* vcons-input.c: New file.
* vcons-scrollback.c (_cons_vcons_scrollback): New function.
(cons_vcons_scrollback): Reimplement in terms of
_cons_vcons_scrollback.
* cons.h (cons_scroll_t): New type.
(cons_vcons_scrollback): Update prototype.
* priv.h (_cons_jump_down_at_input): New extern.
(_cons_jump_down_at_output): Likewise.
(_cons_vcons_scrollback): New prototype.
* opts-std-startup.c (OPT_JUMP_DOWN_AT_INPUT): New macro.
(OPT_JUMP_DOWN_AT_OUTPUT): Likewise.
(_cons_jump_down_at_input): New variable.
(_cons_jump_down_at_output): Likewise.
(startup_options): Add new options --jump-down-at-input and
--jump-down-at-output.
(parse_startup_opt): Handle these new options.
* file-changed.c (cons_S_file_changed): Support the jump down at
output option.
|
|
* file-changed.c (cons_S_file_changed): Fix typo in last change.
|
|
* hurdio.c (hurdio_writer_loop): Check output_stopped instead termflags.
Move the code that signals the underlying file to ...
(hurdio_start_output): ... here.
|
|
2002-09-10 Marcus Brinkmann <marcus@gnu.org>
* display.c (DISPLAY_CHANGE_FLAGS): New macro.
(struct changes): New member FLAGS.
(display_flush_filechange): Handle change of flags.
(display_output_some): Initialize DISPLAY->changes.flags.
(display_start_output): Clear CONS_FLAGS_SCROLL_LOCK in DISPLAY.
(display_stop_output): Set CONS_FLAGS_SCROLL_LOCK in DISPLAY.
hurd/
2002-09-10 Marcus Brinkmann <marcus@gnu.org>
* console.h (struct cons_display): New member FLAGS.
(union cons_change_t): Likewise for WHAT->flags.
libcons/
2002-09-10 Marcus Brinkmann <marcus@gnu.org>
* cons.h: New prototype for cons_vcons_set_scroll_lock.
(struct vcons): Add member FLAGS to state.
* file-changed.c (cons_S_file_changed): Handle change of flags.
* vcons-refresh.c (cons_vcons_refresh): Copy FLAGS field.
Call cons_vcons_set_scroll_lock.
* cons-switch.c (cons_switch): Initialize VCONS_ENTRY even if
DELTA is negative.
utils/
2002-09-09 Marcus Brinkmann <marcus@gnu.org>
* console-ncurses.c (cons_vcons_set_scroll_lock): New function.
|
|
* munge.c (input_character): Really toggle USER_OUTPUT_SUSP if
VSTART == VSTOP.
|
|
* hurdio.c (hurdio_writer_loop): Desert the DTR on all errors, not
only EIO.
(hurdio_reader_loop): Likewise.
|
|
* display.c (display_output_some): If iconv fails with EILSEQ,
skip the next byte in the buffer and print a replacement
character.
|
|
2002-09-09 Marcus Brinkmann <marcus@gnu.org>
* Makefile (SRCS): Add vcons-scrollback.c.
* vcons-scrollback.c: New file.
* cons.h (struct vcons): Add SCROLLING member.
* file-changed.c: Include <assert.h>.
(cons_S_file_changed): Be careful to take VCONS->scrolling into
account when doing clipping and scrolling.
* cons-switch.c: Roll back to earlier version with vcons ->
vcons_entry adjustments. The user is now expected to hold a
reference to the VCONS.
* cons.h: Fix prototype, too.
* vcons-open.c (cons_vcons_open): Initialize VCONS->lock,
VCONS->input and VCONS->display.
utils/
2002-09-09 Marcus Brinkmann <marcus@gnu.org>
* console-ncurses.c (console_switch): Keep a reference to the port
instead refering to it by number.
|
|
2002-09-09 Marcus Brinkmann <marcus@gnu.org>
* vcons-remove.c: New file.
* Makefile (SRCS): Add vcons-destroy.c.
* cons.h: New type vcons_list_t.
(struct vcons_list): New structure.
(struct cons_notify): Remove VCONS member.
(struct vcons): Remove members NEXT, PREV and NOTIFY. Add the
notify structure to the top to make it possible to use a vcons as
a port. New member VCONS_ENTRY.
(struct cons): Change type of members vcons_list and vcons_last to
vcons_list_t. Remove member active.
(cons_vcons_add): Change prototype to match new definition.
(cons_vcons_remove): Likewise.
(cons_switch): Likewise.
(cons_lookup): Likewise.
(cons_vcons_open): Likewise.
(cons_vcons_destroy): New prototype.
* cons-lookup.c (cons_lookup): Change type of R_VCONS argument
vcons_list_t. Change type of previous_vcons and vcons variables
to vcons_list_t. Append _entry to all these variables.
Don't allocate and initialize a vcons_t, but a vcons_list_t.
After this has been added to the list, call cons_vcons_add.
* cons-switch.c: Do not include <error.h>
(cons_switch): Add arguments ACTIVE_ID and R_VCONS. New variable
ERR and VCONS_ENTRY. Remove variable ACTIVE. Do not keep track
of active console. Instead, look it up using ACTIVE_ID. Lock the
returned console. Call cons_vcons_open, not cons_vcons_activate.
* dir-changed.c (add_one): Change VCONS to VCONS_ENTRY and its
type from vcons_t to vcons_list_t to follow cons_lookup change.
(lookup_one): Likewise.
(cons_S_dir_changed): Likewise.
* file-changed.c (cons_S_file_changed): Cast NOTIFY to VCONS.
Check that NOTIFY->cons is not set instead that NOTIFY->vcons is.
* init-init.c (cons_init): Pass cons_vcons_destroy as
clean_routine to ports_create_class.
Don't initialize CONS->active, nor DIR_NOTIFY_PORT->vcons.
* vcons-add.c (cons_vcons_add): Change argument VCONS to CONS and
VCONS_ENTRY. Don't do anything here (the user must implement it
all).
* vcons-close.c: Don't include <errno.h>, <unistd.h>, <stdio.h>,
<sys/mman.h>, <sys/fcntl.h>, <mach.h>. Include <assert.h>,
<hurd/ports.h> and <cthreads.h>.
(cons_vcons_close): Clear VCONS->vcons_entry->vcons. Derefence
and destroy VCONS.
* vcons-open.c (cons_vcons_open): Change arguments from VCONS to
CONS, VCONS_ENTRY and R_VCONS. New variable VCONS. Set up VCONS
as a port, and request notification messages on that.
* vcons-remove.c: Do not include <errno.h>.
(cons_vcons_remove): Assert that VCONS_ENTRY does not have an open
VCONS.
utils/
2002-09-09 Marcus Brinkmann <marcus@gnu.org>
* console-ncurses.c: New global variable global_lock.
(main): Initialize global_lock.
(cons_vcons_activate): Removed.
(console_switch): New function.
(cons_vcons_add): New function.
(input_loop): Call console_switch, not cons_switch. Do not take
active_vcons lock but global_lock.
(cons_vcons_update): Take global lock.
(cons_vcons_set_cursor_pos): Likewise.
(cons_vcons_set_cursor_status): Likewise.
(cons_vcons_scroll): Likewise.
(cons_vcons_write): Likewise.
(cons_vcons_beep): Likewise.
(cons_vcons_flash): Likewise.
|
|
|
|
* Makeconf (CPPFLAGS): Add -std=gnu99 option.
|
|
* console.h: Include <wchar.h>.
|
|
* console.c (parse_opt): If STATE->input is zero, use
netfs_root_node's hook to cons.
|
|
|
|
* cthreads.c (cthread_body) [HAVE_USELOCALE]: Call uselocale to
initialize the thread to the global locale.
|
|
* configure.in: Check for uselocale function.
|
|
* display.c (display_create): Likewise. Set
DISPLAY->attr.attr_def instead the color versions.
(struct attr): Remove fgcol_def, bgcol_def, and add attr_def.
(handle_esc_bracket_m): Set all attributes to their defaults for
case 0. Set default color using default attribute for case 49 and
case 39.
(display_output_one): Likewise.
* console.c (options): Add --attribute option.
(parse_opt): Parse --attribute option. Bail out with argp_error
on error.
(netfs_append_args): ...
(struct cons): Replace foreground and background with new
attribute member.
(vcons_lookup): Pass CONS->attribute to display_create instead
CONS->foreground and CONS->background.
(main): Set default colors and attributes.
(parse_attributes): New function.
|
|
* console-ncurses.c (main): Call endwin () before bailing out
because of an error.
(cons_vcons_write): Use getyx and wmove on stdscr instead getsyx
and setsyx (which operate on newscr, and mess up the cursor
anyway, probably because we don't commit the change immediately).
Submitted by David Walter <dwalter@syr.edu>.
|
|
2002-08-28 Marcus Brinkmann <marcus@gnu.org>
* console.h (struct cons_display): Fix comment on CUR_LINE.
console/
2002-08-28 Marcus Brinkmann <marcus@gnu.org>
* display.c (screen_fill): Take CUR_LINES modulo LINES.
(screen_shift_left): Likewise.
(screen_shift_right): Likewise.
(linefeed): Don't take CUR_LINES modulo LINES here.
libcons/
2002-08-28 Marcus Brinkmann <marcus@gnu.org>
* file-changed.c (cons_S_file_changed): Take NEW_CUR_LINE modulo
VCONS->state.screen.lines where appropriate. Adapt calculation of
SCROLLING, and limit it to the screen size.
Only scroll at all if there is something to scroll.
Fix calculation of scrolled-in area.
* vcons-refresh.c (cons_vcons_refresh): Take
VCONS->state.screen.cur_line modulo VCONS->state.screen.lines.
|
|
* display.c (display_output_one): Also set USER->cursor.status to
normal for ECMA-48 <RIS> (hard reset).
|
|
* Makefile (DIST_FILES): New variable.
* hurd.ti: New file describing the terminal capabilities of the
Hurd console server.
|
|
* aclocal.m4 (hurd_LIB_NCURSESW): New test, modified from GNU
inetutils 1.4.0.
* configure.in: Use hurd_LIB_NCURSESW.
* config.make.in (LIBNCURSESW): New variable, substituted by
configure.
(NCURSESW_INCLUDE): Likewise.
* Makefile (lib-subdirs): Add libcons.
(prog-subdirs): Add console.
console/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* console.h: Move file to ../hurd/.
* Makefile (LCLHDRS): Remove console.h.
* display.c: Include <hurd/console.h> instead "console.h".
* console.c: Likewise.
hurd/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* console.h: Move here from ../console/.
* Makefile (INSTHDRS): Add console.h.
utils/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* Makefile: Include `../config.make' early on to get LIBNCURSESW
variable from configure before including Makeconf.
(targets) [LIBNCURSES]: Add console-ncurses.
(SRCS) [LIBNCURSES]: Add console-ncurses.c.
(HURDLIBS) [LIBNCURSES]: Add cons.
(console-ncurses): New target.
(console-ncurses-CPPFLAGS): New variable.
(console-ncurses-LDLIBS): Likewise.
|
|
* aclocal.m4 (hurd_LIB_NCURSESW): New test, modified from GNU
inetutils 1.4.0.
* configure.in: Use hurd_LIB_NCURSESW.
* config.make.in (LIBNCURSESW): New variable, substituted by
configure.
(NCURSESW_INCLUDE): Likewise.
* Makefile (lib-subdirs): Add libcons.
(prog-subdirs): Add console.
console/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* console.h: Move file to ../hurd/.
* Makefile (LCLHDRS): Remove console.h.
* display.c: Include <hurd/console.h> instead "console.h".
* console.c: Likewise.
hurd/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* console.h: Move here from ../console/.
* Makefile (INSTHDRS): Add console.h.
utils/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* Makefile: Include `../config.make' early on to get LIBNCURSESW
variable from configure before including Makeconf.
(targets) [LIBNCURSES]: Add console-ncurses.
(SRCS) [LIBNCURSES]: Add console-ncurses.c.
(HURDLIBS) [LIBNCURSES]: Add cons.
(console-ncurses): New target.
(console-ncurses-CPPFLAGS): New variable.
(console-ncurses-LDLIBS): Likewise.
|
|
|
|
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* demuxer.c, init-init.c, init-loop.c, opts-version.c,
extra-version.c, dir-changed.c, file-changed.c,
opts-std-startup.c, cons-lookup.c, cons-switch.c, vcons-remove.c,
vcons-add.c, vcons-open.c, vcons-close.c, vcons-refresh.c, priv.h,
mutations.h, cons.h: New files.
|
|
* display.h: Add prototype for display_get_size.
* display.c (display_get_size): New function.
(nowait_file_changed): Update for new interfaces.
* console.c (new_node): Use display_get_size to retrieve size of
display node.
(netfs_get_dirents): Initialize FIRST_VCONS to silence gcc warning.
|