Commit 23bcec5d authored by mcmlxxix's avatar mcmlxxix
Browse files

initialize buffer as an empty string (instead of an array)

parent 440c1711
......@@ -9,7 +9,7 @@ function InputLine(frame) {
frame:undefined,
attr:undefined,
cursor:undefined,
buffer:[]
buffer:""
};
var settings = {
show_border:true,
......@@ -279,7 +279,7 @@ function InputLine(frame) {
//gotoxy(position);
}
function reset() {
properties.buffer = [];
properties.buffer = "";
properties.frame.clear();
if(settings.show_cursor)
printCursor();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment