gpm-1.19.6-pty.diff

来自「zhcon linux控制台下的中文操作环境yuanma」· DIFF 代码 · 共 19 行

DIFF
19
字号
diff -urN gpm-1.19.6/src/liblow.c gpm-1.19.6.new/src/liblow.c--- gpm-1.19.6/src/liblow.c	Tue Oct  2 04:08:47 2001+++ gpm-1.19.6.new/src/liblow.c	Tue Apr 30 22:44:24 2002@@ -243,6 +243,14 @@           if (!t && isatty(1)) t = ttyname(1); /* stdout */           if (!t && isatty(2)) t = ttyname(2); /* stderr */           if (!t) goto err;++          /* help api running in pty env, like zhcon*/+	  /* get salve tty name and try open */+	  if (!strncmp(t,"/dev/pts",8))+            { /* for pty mode */+              t = getenv("PTY_SLAVE"); /* get slave tty */+              if (!t) goto err;+            }           strcpy(tty,t);            /* replace with report() in gpm-1.21.x */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?