You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like the title says, the fields console.windowWidth and console.windowHeight work correctly, but do not update after a window resize. Here's an example:
import'package:dart_console/dart_console.dart';
import'dart:io';
voidmain() {
final console =Console();
while (true) {
var key = console.readKey();
if (key.char =='q') {
break;
} else {
// Press some keys, resize the window, press some more keys
stdout.writeln('${console.windowWidth}x${console.windowHeight}'); // Does not update
stdout.writeln('${stdout.terminalColumns}x${stdout.terminalLines}'); // Updates
}
}
}
This was observed in gnome-terminal and vscode's integrated terminal.
The text was updated successfully, but these errors were encountered:
Like the title says, the fields
console.windowWidth
andconsole.windowHeight
work correctly, but do not update after a window resize. Here's an example:This was observed in gnome-terminal and vscode's integrated terminal.
The text was updated successfully, but these errors were encountered: