Skip to content

Commit 17a2ff8

Browse files
committed
improvement(ui): wider terminal
1 parent 6792f15 commit 17a2ff8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/runtime/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@
7272
emulator.add_listener("emulator-ready", function () {
7373
initTerm();
7474
setTimeout(() => {
75-
sendBackgroundCommands(["/etc/init.d/S40network restart"]);
76-
emulator.serial0_send('\\! reset\n');
75+
sendBackgroundCommands([
76+
"/etc/init.d/S40network restart"
77+
]);
78+
emulator.serial0_send(`\\! stty rows ${emulator.serial_adapter.term.rows} cols ${emulator.serial_adapter.term.cols} && reset\n`);
7779
emulator.serial_adapter.term.focus();
7880
}, 0);
7981
});

packages/runtime/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ body {
2121
.xterminal {
2222
position: relative;
2323
padding: 16px;
24-
width: calc(80ch + 16px * 2);
24+
width: 60%;
2525
height: 60%;
2626
background: black;
2727
border-radius: 7px;

0 commit comments

Comments
 (0)