Revision: 10774 https://osdn.net/projects/ttssh2/scm/svn/commits/10774 Author: zmatsuo Date: 2023-06-20 23:22:45 +0900 (Tue, 20 Jun 2023) Log Message: ----------- LANG=C aptitude で罫線が正しく表示できなかったので修正 - CSI REP が動作していなかったので修正 - CSI Ps b - 例 - echo -e "A\1b[10b" - LANG=ja_JP.UTF-8 aptitude の場合は REP が使われないようだ - echo -e "あ\1b[10b" は動作しない Modified Paths: -------------- trunk/teraterm/teraterm/vtterm.c -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtterm.c =================================================================== --- trunk/teraterm/teraterm/vtterm.c 2023-06-18 15:16:07 UTC (rev 10773) +++ trunk/teraterm/teraterm/vtterm.c 2023-06-20 14:22:45 UTC (rev 10774) @@ -58,10 +58,10 @@ #include "checkeol.h" #include "asprintf.h" #include "charset.h" +#include "ttcstd.h" #include "vtterm.h" -#include "unicode_test.h" // #define DEBUG_DUMP_INPUTCODE 1 #define Accept8BitCtrl ((VTlevel >= 2) && (ts.TermFlag & TF_ACCEPT8BITCTRL)) @@ -131,7 +131,7 @@ static BYTE PrevCharacter; static BOOL PrevCRorLFGeneratedCRLF; // indicates that previous CR or LF really generated a CR+LF -static BYTE LastPutCharacter; +static char32_t LastPutCharacter; // status buffer for main screen & status line static TStatusBuff SBuff1, SBuff2, SBuff3; @@ -758,6 +758,7 @@ unsigned short cset; int LineEnd; + LastPutCharacter = code; TCharAttr CharAttrTmp; CharAttrTmp = CharAttr;