summaryrefslogtreecommitdiff
path: root/console-client
AgeCommit message (Collapse)Author
2011-04-08Depend on X11 for string to keysym mappings.Diego Nieto Cid
* config.make.in (HAVE_X11,X11_CFLAGS,X11_LIBS,XKB_BASE): New variables. * configure.in: Check for x11 module. * console-client/Makefile (PC_KBD_SO_SRCS): Move XKB sources... * console-client/Makefile (XKB_SRCS): ... here. New variable. * console-client/Makefile (SRCS): Add $(XKB_SRCS). * console-client/Makefile (LCLHDRS): Add xkb/xkb.h. * console-client/Makefile (XKB_DATA_DIR): Removed variable. * console-client/Makefile (pc_kbd.so.$(hurd-version)): Use patsubst. Depend on XKB objects when HAVE_X11 = yes. * console-client/Makefile (install): Depend on XKB datafiles when HAVE_X11 = yes. * console-client/Makefile (pc-kbd-CFLAGS): Set variable when HAVE_X11 = yes * console-client/Makefile ($(XKB_DATA_DIR),$(XKB_DATA_DIR)/%): Replaced by... * console-client/Makefile[HAVE_X11=yes]($(XKB_BASE),$(XKB_BASE)/%): ... this targets. * console-client/Makefile[HAVE_X11=yes](pc_kbd-LDLIBS): New variable. * console-client/xkb/keysymdef.h: Removed file. * console-client/xkb/ks_tables.h: Likewise. * console-client/xkb/symname.c: Likewise. * console-client/xkb/xkb.c: Include <X11/keysymdef.h>. * console-client/xkb/compose.c: Likewise. * console-client/xkb/xkb.h: Remove XStringToKeysym prototype. Include <X11/Xlib.h>.
2011-04-08Update xkb/README.Diego Nieto Cid
* console-client/xkb/README: Refer to this artifact as "module" instead of "input driver". Key repeater is now implemented by pc-kbd. Update the module's installation and usage procedures.
2011-04-08Use first section when there's no default.Diego Nieto Cid
* console-client/xkb/parser.y (skip_to_firstsection): New function. (include_section): Call skip_to_firstsection when skip_to_defaultsection fails.
2011-04-08* console-client/xkb/parser.y (include_section): Free filename.Diego Nieto Cid
2011-04-08* console-client/xkb/parser.y (include_section): Remove superflous strdup.Diego Nieto Cid
2011-04-08Added an example for selecting the keymap.Arne Babenhauserheide
* console-client/xkb/README: Keymap selection example.
2011-04-08Symbols 0..9 stand for their ascii character.Diego Nieto Cid
* console-client/xkb/parser.y(symbolname): Shift by '0' numbers [0..9].
2011-04-08Add support for hexadecimal symbols.Diego Nieto Cid
* console-client/xkb/parser.y(symbolname): Match and return hex value.
2011-04-08Update foreign files.Diego Nieto Cid
* console-client/xkb/keysymdef.h: Replaced file. * console-client/xkb/ks_tables.h: Likewise. * console-client/xkb/kstoucs.c: Likewise. * console-client/xkb/symname.c: Likewise. * console-client/xkb/HACKING: New file, added foreign files information.
2011-04-08Document new options.Diego Nieto Cid
* console-client/xkb/README: Updated.
2011-04-08* console-client/xkb/xkb.c (iskeypad): Access up to 'width' symbols.Diego Nieto Cid
2011-04-08'vmods' is an alias for 'virtual_modifiers'.Diego Nieto Cid
2011-04-08Fix handling of error conditions.Diego Nieto Cid
* console-client/xkb/parser.y (key_set_action): Test actions variable. (key_set_keysym): Test keysyms instead of keys.
2011-04-08Fix memory errors.Diego Nieto Cid
* console-client/xkb/parser.y (key_set_keysym): Consider symbol's size when reallocing. (key_set_action): Consider (xkb_action_t *)'s size when reallocing. Start clearing levels from 'width' and up to 'level'.
2011-04-08Add neo supportAlexander Preisinger
* console-client/xkb/xkb-data/keymap/hurd: New keymap neo.
2011-04-08README updateAlexander Preisinger
2011-04-08Enable hurd extensions in every layout.Diego Nieto Cid
2011-04-08Remove obsolete variable declaration.Diego Nieto Cid
2011-04-08Use vfprintf in debug_printf and write to stderr.Diego Nieto Cid
2011-04-08Add debugging messages.Diego Nieto Cid
* console-client/xkb/lex.l(include_file): Log file changes. * console-client/xkb/parser.y(key_set_keysym): Log symbol associations. (include_section): Log section being read. (symbolssect,keycodesect,key_new): Log current key. * console-client/xkb/xkbdata.c(keyname_add): Log keyname, keycode and hash. (set_rmod_keycode): Log modifier, keyname and keycode.
2011-04-08Emit warnings on undeclared virtual modifiers.Diego Nieto Cid
2011-04-08Report inexistent section.Diego Nieto Cid
* console-client/xkb/parser.y (include_section): Declare scanner_get_current_location and scanner_get_current_file prototypes. New local variables current_location, current_file and err. Report error and exit when a section cannot be processed successfully.
2011-04-08Add function to read the state of the scanner.Diego Nieto Cid
* console-client/xkb/lex.l (scanner_get_current_location): New function. (scanner_get_current_file): Likewise.
2011-04-08Check for end of file.Diego Nieto Cid
* console-client/xkb/parser.y [!YY_NULL]: Define YY_NULL, the end of file token. * console-client/xkb/parser.y (skip_to_sectionname): If the end of file is reached while skipping symbols return an error. Return 0 on success. * console-client/xkb/parser.y (skip_to_defaultsection): Likewise.
2011-04-08Propagate error on unexpected end of files.Diego Nieto Cid
* console-client/xkb/lex.l (close_include): Return an error code on failure. (yywrap): Indicate termination when close_include fails.
2011-04-08Give the file name and line number where an unexpected end of file was found.Diego Nieto Cid
2011-04-08Warn when too many virtual modifier are defined.Diego Nieto Cid
2011-04-08Avoid hashing garbage for short keynames.Diego Nieto Cid
2011-04-08Rule vmod returns an int with the vmod's bit on.Diego Nieto Cid
This allows to combine virtual modifiers safely.
2011-04-08Recreate xkb/keymap/hurd from xkeyboard-config-1.8's xfree86 keymap.Diego Nieto Cid
modified: xkb/keymap/hurd * Don't include inexistant symbol file: pc104. * en_US was replaced by pc(pc105). * Append us layout by default as pc(pc105) no longer describes a full keyboard.
2011-04-08Update key type assigment routine.Diego Nieto Cid
2011-04-08Skip to main file's default section when needed.Diego Nieto Cid
2011-04-08Lexer support for keycodes with +/- symbols and arbitrary level numbers.Diego Nieto Cid
2011-04-08debian patch: 04_cleanups.patchDiego Nieto Cid
2011-04-08debian patch: 03_hurd_keymap.patchDiego Nieto Cid
2011-04-08Install XKB data files.Diego Nieto Cid
* console-client/Makefile (XKB_DATA_DIR, XKB_DATA_FILES): New variables. (DIST_FILES): Use XKB_DATA_FILES to list data files. (pc-kbd-CFLAGS): Use XKB_DATA_DIR variable. (intall): Add XKB data files to it's dependencies. ($(XKB_DATA_DIR), $(XKB_DATA_DIR)/%): New targets.
2011-04-08Translate scancodes using XKB.Diego Nieto Cid
* console-client/Makefile (pc-kbd-CFLAGS): New variable. (PC_KBD_SO_SRCS): Add sources from xkb directory. (LCLHDRS): Add includes from xkb directory. (lex.c, parser.tab.h): New targets. (VPATH): New variable. (CPPFLAGS): Add xkb directory to include search path. (LFLAGS, YFLAGS): New variables. (DIST_FILES): New variable. * console-client/pc-kbd.c [XKB_SUPPORT]: Include xkb/xkb.h. (cd): Removed static qualifier. [XKB_SUPPORT] (ctrlaltbs): New variable. [XKB_SUPPORT] (xkb_repeat_delay, xkb_repeat_interval): Likewise. (gnumach_v1_input_next) [XKB_SUPPORT]: Skip conversion to set 2. [XKB_SUPPORT] (read_keycode): New function. [XKB_SUPPORT] (input_loop): Pass keycode to xkb_input_key. (struct arguments): New type. (options) [XKB_SUPPORT]: New options xkbdir, keymapfile, keymap compose, ctrlaltbs, no-ctrlaltbs, repeat-delay and repeat-interval. (parse_opt) [XKB_SUPPORT]: Handle new options. (pc_kbd_init) [XKB_SUPPORT]: Initialize XKB and load layout. (pc_kbd_start) [XKB_SUPPORT]: Initialize xkb timers.
2011-04-04Add missing semicolons bison was inserting.Diego Nieto Cid
* console-client/xkb/parser.y: Add semicolons where needed.
2011-04-04Add type to $$ in mid-rules.Diego Nieto Cid
(see http://www.mail-archive.com/help-bison@gnu.org/msg02159.html )
2011-04-04debian patch: 06_gcc-4.1_fix.patchDiego Nieto Cid
2011-04-04Use external encoding converter.Diego Nieto Cid
* console-client/xkb/xkb.c (cd): Change storage class to extern.
2011-04-04Export function to load the keaboard layout.Diego Nieto Cid
* console-client/xkb/xkb.c (xkb_load_layout): New function. * console-client/xkb/xkb.h (xkb_load_layout): Export prototype.
2011-04-04Remove keyboard driver from XKB implementation.Diego Nieto Cid
* console-client/xkb/xkb.c (kbd_dev): Deleted variable. (gnumach_v1_compat, repeater_node,cnode, arguments): Likewise. (options, ctrlaltbs, argp, xkb_ops, driver_xkb_ops): Likewise. (gnumach_v1_input_next, read_scancode): Deleted functions. (input_loop, xkb_start, xkb_init, parse_opt): Likewise. (xkb_start, xkb_fini, xkb_set_scroll_lock_status): Likewise.
2011-03-17Add XKB parser and implementation.Marco Gerards
* console-client/xkb/Compose: New file. * console-client/xkb/MISSING-FEATURES: Likewise. * console-client/xkb/README: Likewise. * console-client/xkb/TODO: Likewise. * console-client/xkb/compose.c: Likewise. * console-client/xkb/default.xkb: Likewise. * console-client/xkb/keysymdef.h: Likewise. * console-client/xkb/ks_tables.h: Likewise. * console-client/xkb/kstoucs.c: Likewise. * console-client/xkb/lex.l: Likewise. * console-client/xkb/makeconf.sh: Likewise. * console-client/xkb/parser.y: Likewise. * console-client/xkb/symname.c: Likewise. * console-client/xkb/xkb-data/keymap/hurd: Likewise. * console-client/xkb/xkb-data/symbols/hurd: Likewise. * console-client/xkb/xkb-data/types/hurd: Likewise. * console-client/xkb/xkb.c: Likewise. * console-client/xkb/xkb.h: Likewise. * console-client/xkb/xkbdata.c: Likewise. * console-client/xkb/xkbdefaults.c: Likewise. * console-client/xkb/xkbtimer.c: Likewise.
2011-01-02Strictly adhere to the VGA register conventionSamuel Thibault
Not writing a value to the "enable display" register works for tested cards, but Linux writes a 0, and you can never know what manufacturers think. * console-client/vga-support.c (vga_exchange_palette_attributes): Write a 0 value to the "enable display" register.
2010-08-01Fix "make dist" in `console-client'.Ludovic Courtès
This patch updates the list of headers to be included in the distribution, and makes it so that `kdioctlServer.c' isn't built and distributed by "make dist". * console-client/Makefile (PC_KBD_SO_SRCS): Remove `kdioctlServer.c'. (LCLHDRS): Remove `vga.h', add `vga-support.h' and `trans.h'. (OBJS): Add `kdioctlServer.o'. (pc_kbd.so.$(hurd-version)): Add dependency on `kdioctlServer_pic.o'.
2010-08-01Fix copyrightsSamuel Thibault
2010-08-01Add wide character support to the Hurd consoleJeremie Koenig
* hurd/console.h (CONS_WCHAR_MASK, CONS_WCHAR_CONTINUED): New macros. * console/console.c: Include <locale.h> (main): Call setlocale. * console/display.c (display_output_one): Call wcwidth() to know the width of the character to be displayed. Iterate over this with to insert characters with the additional CONS_WCHAR_CONTINUED flag. Update screen_shift_right and display_record_filechange calls accordingly. * console-client/vga-dynafont.c (WCHAR_BOLD, WCHAR_ITALIC, WCHAR_MASK): Change macro values. (dynafont_new): Use glyph->bbox.{width,height} instead of df->font->bbox.{width,height}. (dynafont_change_font): Likewise. (dynafont_lookup_internal): Likewise. Mask out CONS_WCHAR_CONTINUED before calling bdf_find_glyph, but test it for the second position of a double-width glyph. (dynafont_activate): Enable 9-bit width only when font width is not dividable by 8.
2010-07-27Fix -g/-m console vga driver optionsSamuel Thibault
* console-client/vga.c (parse_opt): Reverse -g and -m option effect to match documentation.
2009-10-25Fix current_vcs driver loadSamuel Thibault
* console-client/current-vcs.c (vcs_repeat_init): Rename function into... (current_vcs_init): ... this. (vcs_repeat_start): Rename function into... (current_vcs_start): ... this. (vcs_repeat_fini): Rename function into... (current_vcs_fini): ... this.