summaryrefslogtreecommitdiffstats
path: root/sys/dev/wscons/wsemul_vt100.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove some case statements which have been compiled out since 2000.fcambus2017-08-101-20/+1
| | | | OK mpi@
* Partially revert previous mallocarray conversions that containdhill2017-04-111-5/+5
| | | | | | | | | constants. The consensus is that if both operands are constant, we don't need mallocarray. Reminded by tedu@ ok deraadt@
* Convert some malloc(9) to mallocarray(9)dhill2017-04-091-5/+5
| | | | ok deraadt@
* fairly simple sizes for free(); ok teduderaadt2015-08-281-2/+2
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-3/+3
| | | | after discussions with beck deraadt kettenis.
* UTF-8 support for wsdisplay emulation modes. Both vt100 and sun emulationmiod2013-10-181-85/+204
| | | | | | | | | | | | | will now recognize xterm-compatible escape sequences ESC % G and ESC % @ to enter and leave UTF-8 mode, respectively. Not enabled on SMALL_KERNEL. Most of this written during c2k7, completed during b2k13. Note that the value of several international keysyms change, to switch from ISO Latin-[257] values to the real Unicode values. Be sure to update your includes and rebuild and install wsconsctl.
* Introduce a dedicated private header file to control the optional featuresmiod2013-10-181-8/+5
| | | | | | | of wscons (which usually get disabled for installation kernels, to save space), instead of duplicating parts of it to too many places. No functional change.
* Use (N * sizeof(u_int)) instead of (N * sizeof(int)) when malloc'ing u_int *.miod2013-06-161-5/+5
| | | | Doesn't change anything, but silences a Clang warning; dhill@bitrig
* In `string' state, accept bell (^G) as an end of sequence in addition tomiod2011-08-041-2/+8
| | | | | | `ESC \', as supported by xterm; some third-party software such as ncmpcpp rely upon this. Noticed by dcoppa@, based on a draft diff by nicm@; ok deraadt@
* After all escape sequence processing, check for being beyond the lastnicm2010-09-011-2/+13
| | | | | | | | | | column and and clear VTFL_LASTCHAR if so. This fixes the case where an escape sequence (originally noticed with DECSTBM) moves the cursor and doesn't reset the flag - if it was set, there would be a spurious line feed on the next input. ok miod
* Check the return value of all emulops in the emulation code, and abortmiod2009-09-051-68/+216
| | | | | | | | | | | | tty output as soon as we hit a failure. Since the `output' of a character may cause several emulops to be called (e.g. if it causes scrollup or if this is the end of an escape sequence), all emulation code maintain a so-called `abort state', to be able to properly recover when the character is tentatively output later, and not reissue the emulops which did not fail the first time. With help from mglocker@
* Make the output() wsemul_op return the number of characters processed andmiod2009-09-051-3/+9
| | | | | check it in wsdisplaystart() to suspend output if not all characters have been output; they will get reissued at the next tty rstrt_to timeout.
* Rework internal interfaces in the wsdisplay emulation code to prepare formiod2009-09-051-43/+61
| | | | upcoming changes. No functional change.
* Recognize CAN and SUB control characters, and cancel any current escapemiod2009-01-121-6/+10
| | | | sequence when they appear. Per VT100 manual via naddy@, ok naddy@
* Remove whitespace at EOL, KNF, ansify. Move jump scroll code to a separatemiod2007-11-271-195/+143
| | | | routine. No functional change (har, har)
* Ask the emulation code to hide the cursor when leaving emulation mode. Thismiod2007-11-251-1/+5
| | | | way we do not get a phantom cursor image when X exits.
* KNFgilles2007-09-111-2/+2
| | | | prompted and "much better" by marco@, ok pyr@
* more MALLOC/FREE -> malloc/free and M_ZERO changesgilles2007-09-101-4/+2
| | | | ok pyr@
* FALLTHRU -> FALLTHROUGH for consistency.jsg2007-02-141-2/+2
| | | | Suggested by miod@
* Some dynamically allocated elements are not considered of vital importancemiod2007-01-071-107/+110
| | | | | | | | | | | | for the vt100 emulation to work well enough for most cases (i.e. alternate character set tables, non-default tab settings, etc). However, code did not always check if these elements had been successfully allocated before trying to use them, or worse, would explicitely panic in DIAGNOSTIC kernels. Change this to work in a degraded mode (by ignoring related escape sequences) instead.
* Change allocations to M_NOWAIT in attach methods, and return NULL if they fail.miod2007-01-071-2/+4
|
* Fix hopefully the last wscons jump scrolling glitch, which can occurdim2006-10-191-1/+3
| | | | | | | in case autowrapping is on, and control characters other than BS, CR, HT are encountered. Righto! miod@, also verified by Paul Stoeber.
* Fix jump scroll glitch, reported by dim@ and Paul Stoeber.miod2006-10-091-2/+2
|
* Jump scroll support for vt100 and sun wscons emulations, helps macppc andmiod2006-08-171-1/+77
| | | | zaurus a lot, tested by many; ok deraadt@
* correct indentderaadt2004-12-251-2/+2
|
* vt100 wscons crashes restoring cursor if it had never been saved before.miod2004-12-231-1/+4
| | | | From NetBSD (wsemul_vt100.c 1.24, wsemul_vt100var.h 1.7)
* Reliability fix, from NetBSD:miod2004-12-231-18/+25
| | | | | When moving the cursor down, only scroll up if cursor is exactly at bottom of scroll region; don't scroll if below scroll region.
* remove terms 3 & 4 for drochner@NetBSD.org; as seen on netbsd listsderaadt2004-04-021-7/+1
|
* Remove more '\n's from panic() statements. Both trailing and leading.krw2002-10-121-2/+2
| | | | Diff generated by Chris Kuethe.
* First round of __P removal in sysmillert2002-03-141-16/+16
|
* Remove some static.aaron2001-04-141-23/+23
|
* Instead of panic'ing when an ESC is found in kernel output, print a warningaaron2001-03-071-5/+7
| | | | and ignore it; from NetBSD.
* default to kernel messages bluederaadt2001-02-201-8/+2
|
* sync w/ netbsd; aaron@ okmickey2001-02-101-2/+2
|
* update wscons, nothing serious, mostly api fixes for us; from netbsd through aaron@mickey2000-08-011-8/+8
|
* import newer wscons source from netbsd.mickey2000-05-161-0/+983
art@ said it will make his life easier in alpha rhands@ said it is not used in powerpc for now bjc@ said that it would make vax port easier mickey@ said other platforms can use it, and it's faster