[Ttssh2-commit] [3357] 送信文字列に使えるエスケープシーケンスを追加。

svnno****@sourc***** svnno****@sourc*****
2009年 4月 29日 (水) 02:13:27 JST


Revision: 3357
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3357
Author:   doda
Date:     2009-04-29 02:13:27 +0900 (Wed, 29 Apr 2009)

Log Message:
-----------
送信文字列に使えるエスケープシーケンスを追加。
  \a -- BEL (0x07)
  \b -- BS (0x08)
  \f -- FF (0x0c)
  \n -- LF (0x0a)
  \r -- CR (0x0d)
  \t -- HT (0x09)
  \v -- VT (0x0b)
  \\ -- \ (0x5c)
  \0 -- NUL (0x00)

http://logmett.com/forum/viewtopic.php?f=2&t=1049

Modified Paths:
--------------
    trunk/TTXSamples/TTXRecurringCommand/TTXRecurringCommand.c


-------------- next part --------------
Modified: trunk/TTXSamples/TTXRecurringCommand/TTXRecurringCommand.c
===================================================================
--- trunk/TTXSamples/TTXRecurringCommand/TTXRecurringCommand.c	2009-04-28 14:07:03 UTC (rev 3356)
+++ trunk/TTXSamples/TTXRecurringCommand/TTXRecurringCommand.c	2009-04-28 17:13:27 UTC (rev 3357)
@@ -112,6 +112,26 @@
 					buf[j] = '\t';
 					i++;
 					break;
+				case 'a':
+					buf[j] = '\a';
+					i++;
+					break;
+				case 'b':
+					buf[j] = '\b';
+					i++;
+					break;
+				case 'f':
+					buf[j] = '\f';
+					i++;
+					break;
+				case 'r':
+					buf[j] = '\r';
+					i++;
+					break;
+				case 'v':
+					buf[j] = '\v';
+					i++;
+					break;
 				case '0':
 					buf[j] = '\0';
 					i++;



Ttssh2-commit メーリングリストの案内