lkml.org 
[lkml]   [1999]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectMicro-patch to console.c
From
This tiny patch allows the character $9D to be either CSI or a literal
character depending on the currently selected character set. It's only
been tested by me, but it's only one line ... <snigger>

ie:
^[(B It's the control character
^[(0 It's the control character
^[(U It's the US cent symbol
^[(K It could be either depending on the mapping
^[%G It'd be a control - but UTF has already weirded it anyway!

In theroy all the conditions there should be from 'tc' BUT while it would
increase the versatility (allowing EBCDIC for instance) it'll also allow
seriously broken mappings (ermm like EBCDIC :-) )

--- console.c.orig Tue Jan 19 18:10:23 1999
+++ console.c Tue Feb 2 23:05:30 1999
@@ -1865,7 +1865,7 @@
(!utf && !(((disp_ctrl ? CTRL_ALWAYS
: CTRL_ACTION) >> c) & 1)))
&& (c != 127 || disp_ctrl)
- && (c != 128+27);
+ && (c != 128+27 || tc != 128+27);

if (vc_state == ESnormal && ok) {
/* Now try to find out how to display it */

--
Rob. (Robert de Bath <http://poboxes.com/rdebath>)
<rdebath @ poboxes.com> <http://www.cix.co.uk/~mayday>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.025 / U:0.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site