Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: tools/ddbg/lib/commando.dart

Issue 105243002: Move an old change into a new client. Old client got messed up. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/ddbg.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ddbg/lib/commando.dart
===================================================================
--- tools/ddbg/lib/commando.dart (revision 30862)
+++ tools/ddbg/lib/commando.dart (working copy)
@@ -263,6 +263,8 @@
void _clearScreen() {
_stdout.write(_term.clear);
+ _term.resize();
+ _screenWidth = _term.cols - 1;
_writePromptAndLine();
}
@@ -372,7 +374,6 @@
_currentLine = [];
_cursorPos = 0;
- _linePos = _lines.length;
if (_promptShown) {
_writePrompt();
}
@@ -593,7 +594,6 @@
int _nextMargin(int pos) {
var truePos = pos + prompt.length;
- var curLine = _getLine(pos);
return ((truePos ~/ _screenWidth) + 1) * _screenWidth - prompt.length;
}
« no previous file with comments | « tools/ddbg.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698