From ec4314a82cea1396f763da459caa5016cf4ca5e6 Mon Sep 17 00:00:00 2001 From: Lars Doelle Date: Sun, 16 Jan 2000 04:52:58 +0000 Subject: [PATCH] added 1049 privacy code. reverted back to TERM=xterm. svn path=/trunk/kdebase/konsole/; revision=38470 --- ChangeLog | 3 +++ src/TEShell.C | 14 ++++++++++---- src/TEmuVt102.C | 5 +++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5c50f8e1..9c7a895a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +16 Jan 2000 +- added privacy code 1049. +- reverted to TERM=xterm. 11 Jan 2000 - upgraded xterm title hack to unicode. - upgraded copy/paste to handle unicode. diff --git a/src/TEShell.C b/src/TEShell.C index 4910f685..7587ca4f 100644 --- a/src/TEShell.C +++ b/src/TEShell.C @@ -29,6 +29,12 @@ \par FIXME + NOTE that this module is part of a program and not a dump for + obsolete tty interfaces. The opening sequence can be reduced to + three or four lines, and, yes, i'll do this on a regular basis. + + \par FIXME + [NOTE: much of the technical stuff below will be replaced by forkpty.] publish the SIGCHLD signal if not related to an instance. @@ -356,11 +362,11 @@ void Shell::makeShell(const char* dev, QStrList & args, const char* term, int lo if (tt > 2) close(tt); - // Setup job control + // Setup job control ////////////////////////////////// + + // This is pretty obscure stuff which makes the session + // to be the controlling terminal of a process group. - // "There be dragons." - // (Ancient world map) - if (setsid() < 0) perror("failed to set process group"); // (vital for bash) #if defined(TIOCSCTTY) diff --git a/src/TEmuVt102.C b/src/TEmuVt102.C index 3870d086..68a99111 100644 --- a/src/TEmuVt102.C +++ b/src/TEmuVt102.C @@ -423,6 +423,11 @@ void VT102Emulation::tau( int code, int p, int q ) case TY_CSI_PR('h', 1048) : saveCursor ( ); break; //XTERM case TY_CSI_PR('l', 1048) : restoreCursor ( ); break; //XTERM + //FIXME: every once new sequences like this pop up in xterm. + // Here's a guess of what they could mean. + case TY_CSI_PR('h', 1049) : setMode (MODE_AppScreen); break; //XTERM + case TY_CSI_PR('l', 1049) : resetMode (MODE_AppScreen); break; //XTERM + //FIXME: when changing between vt52 and ansi mode evtl do some resetting. case TY_VT52__('A' ) : scr->cursorUp ( 1); break; //VT52 case TY_VT52__('B' ) : scr->cursorDown ( 1); break; //VT52