mirror of
https://gitlab.com/AutumnMeowMeow/jexer
synced 2024-09-19 11:50:19 -06:00
run jexer inside jexer
This commit is contained in:
parent
a90d3119be
commit
3633816889
4 changed files with 35 additions and 10 deletions
|
@ -96,6 +96,8 @@ ambiguous. This section describes such issues.
|
|||
emulation limitations.
|
||||
|
||||
|
||||
|
||||
|
||||
Roadmap
|
||||
-------
|
||||
|
||||
|
@ -161,3 +163,6 @@ Screenshots
|
|||
|
||||
![Several Windows Open Including A Terminal](/screenshots/screenshot1.png?raw=true "Several Windows Open Including A Terminal")
|
||||
|
||||
![Yo Dawg...](/screenshots/yodawg.png?raw=true "Yo Dawg, I heard you
|
||||
like text windowing systems, so I ran a text windowing system inside your
|
||||
text windowing system so you can have a terminal in your terminal.")
|
||||
|
|
BIN
screenshots/yodawg.png
Normal file
BIN
screenshots/yodawg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
|
@ -120,8 +120,14 @@ public final class TTYSessionInfo implements SessionInfo {
|
|||
String line = in.readLine();
|
||||
if ((line != null) && (line.length() > 0)) {
|
||||
StringTokenizer tokenizer = new StringTokenizer(line);
|
||||
windowHeight = Integer.parseInt(tokenizer.nextToken());
|
||||
windowWidth = Integer.parseInt(tokenizer.nextToken());
|
||||
int rc = Integer.parseInt(tokenizer.nextToken());
|
||||
if (rc > 0) {
|
||||
windowHeight = rc;
|
||||
}
|
||||
rc = Integer.parseInt(tokenizer.nextToken());
|
||||
if (rc > 0) {
|
||||
windowWidth = rc;
|
||||
}
|
||||
}
|
||||
while (true) {
|
||||
BufferedReader err = new BufferedReader(
|
||||
|
|
|
@ -3307,17 +3307,31 @@ public class ECMA48 implements Runnable {
|
|||
* DECSTBM - Set top and bottom margins.
|
||||
*/
|
||||
private void decstbm() {
|
||||
int top = getCsiParam(0, 1, 1, height) - 1;
|
||||
int bottom = getCsiParam(1, height, 1, height) - 1;
|
||||
boolean decPrivateModeFlag = false;
|
||||
|
||||
if (top > bottom) {
|
||||
top = bottom;
|
||||
for (int i = 0; i < collectBuffer.length(); i++) {
|
||||
if (collectBuffer.charAt(i) == '?') {
|
||||
decPrivateModeFlag = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
scrollRegionTop = top;
|
||||
scrollRegionBottom = bottom;
|
||||
if (decPrivateModeFlag) {
|
||||
// This could be restore DEC private mode values.
|
||||
// Ignore it.
|
||||
} else {
|
||||
// DECSTBM
|
||||
int top = getCsiParam(0, 1, 1, height) - 1;
|
||||
int bottom = getCsiParam(1, height, 1, height) - 1;
|
||||
|
||||
// Home cursor
|
||||
cursorPosition(0, 0);
|
||||
if (top > bottom) {
|
||||
top = bottom;
|
||||
}
|
||||
scrollRegionTop = top;
|
||||
scrollRegionBottom = bottom;
|
||||
|
||||
// Home cursor
|
||||
cursorPosition(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue