diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-10-08 10:26:49 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-10-08 10:26:49 +0000 |
commit | 4a11e7f142b1ff9a7c10cf090ff2ff29c9b86258 (patch) | |
tree | dec6c814949ad26e59f2f60fff269001547f4666 /sys/teken/teken_subr.h | |
parent | 3fa0694aaa00d1c724196f052007a83bf257fca8 (diff) | |
download | src-4a11e7f142b1ff9a7c10cf090ff2ff29c9b86258.tar.gz src-4a11e7f142b1ff9a7c10cf090ff2ff29c9b86258.zip |
Discard Device Control Strings and Operating System Commands.
These strings often contain things like:
- Window titles.
- Extended key map functionality.
- Color palette switching.
We could look at these features in the future (if people consider them
to be important enough), but we'd better discard them now. This fixes
some artifacts people reported when using TERM=xterm.
Reported by: des@, Paul B. Mahol
Notes
Notes:
svn path=/head/; revision=197853
Diffstat (limited to 'sys/teken/teken_subr.h')
-rw-r--r-- | sys/teken/teken_subr.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/sys/teken/teken_subr.h b/sys/teken/teken_subr.h index b8ebcdc13026..ad10abbb6fd5 100644 --- a/sys/teken/teken_subr.h +++ b/sys/teken/teken_subr.h @@ -425,10 +425,11 @@ teken_subr_delete_line(teken_t *t, unsigned int nrows) } static void -teken_subr_device_control_string(teken_t *t __unused) +teken_subr_device_control_string(teken_t *t) { - teken_printf("device control string???\n"); + teken_printf("Unsupported device control string\n"); + t->t_stateflags |= TS_INSTRING; } static void @@ -744,6 +745,14 @@ teken_subr_next_line(teken_t *t) } static void +teken_subr_operating_system_command(teken_t *t) +{ + + teken_printf("Unsupported operating system command\n"); + t->t_stateflags |= TS_INSTRING; +} + +static void teken_subr_pan_down(teken_t *t, unsigned int nrows) { @@ -1258,7 +1267,10 @@ static void teken_subr_string_terminator(teken_t *t __unused) { - teken_printf("string terminator???\n"); + /* + * Strings are already terminated in teken_input_char() when ^[ + * is inserted. + */ } static void |