diff options
author | kato <kato@FreeBSD.org> | 1997-09-27 12:55:57 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-09-27 12:55:57 +0000 |
commit | 31e1d6ad00b9d8f39549115d4ef76fbee62e9748 (patch) | |
tree | e54ea42c0636ebe3d0c2fa8278556470307f8cc2 /sys/pc98 | |
parent | 124b848338401142a12313af049b9af0430ef886 (diff) | |
download | FreeBSD-src-31e1d6ad00b9d8f39549115d4ef76fbee62e9748.zip FreeBSD-src-31e1d6ad00b9d8f39549115d4ef76fbee62e9748.tar.gz |
Synchronize with sys/i386/isa/syscons.c revision 1.233.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/pc98/syscons.c | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c index 2cfda01..7292501 100644 --- a/sys/pc98/pc98/syscons.c +++ b/sys/pc98/pc98/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.55 1997/09/05 10:17:28 kato Exp $ + * $Id: syscons.c,v 1.56 1997/09/14 16:27:37 kato Exp $ */ #include "sc.h" @@ -2279,7 +2279,7 @@ scan_esc(scr_stat *scp, u_char c) u_short *src_attr, *dst_attr; #endif - if (scp->term.esc == 1) { + if (scp->term.esc == 1) { /* seen ESC */ #ifdef KANJI switch (scp->kanji_type) { case 0x80: @@ -2375,14 +2375,18 @@ scan_esc(scr_stat *scp, u_char c) #if notyet case 'Q': scp->term.esc = 4; - break; + return; #endif case 'c': /* Clear screen & home */ clear_screen(scp); break; + + case '(': /* iso-2022: designate 94 character set to G0 */ + scp->term.esc = 5; + return; } } - else if (scp->term.esc == 2) { + else if (scp->term.esc == 2) { /* seen ESC [ */ if (c >= '0' && c <= '9') { if (scp->term.num_param < MAX_ESC_PAR) { if (scp->term.last_param != scp->term.num_param) { @@ -2907,7 +2911,7 @@ scan_esc(scr_stat *scp, u_char c) break; } } - else if (scp->term.esc == 3) { + else if (scp->term.esc == 3) { /* seen ESC [0-9]+ = */ if (c >= '0' && c <= '9') { if (scp->term.num_param < MAX_ESC_PAR) { if (scp->term.last_param != scp->term.num_param) { @@ -3009,6 +3013,20 @@ scan_esc(scr_stat *scp, u_char c) break; } } +#if notyet + else if (scp->term.esc == 4) { /* seen ESC Q */ + /* to be filled */ + } +#endif + else if (scp->term.esc == 5) { /* seen ESC ( */ + switch (c) { + case 'B': /* iso-2022: desginate ASCII into G0 */ + break; + /* other items to be filled */ + default: + break; + } + } scp->term.esc = 0; } |