File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 "printableName" : " Cache Web Terminal" ,
66 "description" : " Web-based terminal emulator for Caché administering." ,
77 "author" : " ZitRo" ,
8- "version" : " 4.2.0 " ,
8+ "version" : " 4.2.1 " ,
99 "gaID" : " UA-83005064-2" ,
1010 "releaseNumber" : 26 ,
1111 "scripts" : {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ let cursorHome,
1717 * "\n{![abc]+}" Regex-es can be mandatory, when the first character "!" is put (not a regex part).
1818 * Mandatory regex-es will block any output until the regex matches.
1919 */
20- export default {
20+ let esc = {
2121 "\u000C" : ( ) => {
2222 output . clear ( ) ;
2323 } ,
@@ -173,14 +173,16 @@ export default {
173173 output . getCurrentLine ( ) . clear ( ) ;
174174 } ,
175175 "\x1b[J" : temp = ( ) => {
176- let y = output . getCursorY ( ) ;
176+ let y = output . getCursorY ( ) + 1 ;
177+ esc [ "\x1b[K" ] ( ) ;
177178 for ( ; y < output . HEIGHT + 1 ; y ++ ) {
178179 output . getLineByCursorY ( y ) . clear ( ) ;
179180 }
180181 } ,
181182 "\x1b[0J" : temp ,
182183 "\x1b[1J" : ( ) => {
183- let y = output . getCursorY ( ) ;
184+ let y = output . getCursorY ( ) - 1 ;
185+ esc [ "\x1b[1K" ] ( ) ;
184186 for ( ; y > 0 ; y -- ) {
185187 output . getLineByCursorY ( y ) . clear ( ) ;
186188 }
@@ -246,4 +248,6 @@ export default {
246248 output . setCursorYToLineIndex ( nextIndex ) ; // jump to new index
247249 output . setCursorX ( 1 ) ;
248250 }
249- }
251+ } ;
252+
253+ export default esc ;
You can’t perform that action at this time.
0 commit comments