[code] Navigation in the console history.

The user can copy previous commands or results, into the clipboard or in
the console prompt.

Change-Id: I280fff2d4937f4d17ab6c8907d6e5c359a322372
This commit is contained in:
Léa Saviot
2017-10-25 17:11:41 +02:00
committed by Romain Goyet
parent 745eddfa05
commit 239e702d37
8 changed files with 66 additions and 18 deletions

View File

@@ -9,6 +9,8 @@ namespace Code {
ConsoleEditCell::ConsoleEditCell(Responder * parentResponder, TextFieldDelegate * delegate) :
HighlightCell(),
Responder(parentResponder),
m_textBuffer{0},
m_draftTextBuffer{0},
m_promptView(ConsoleController::k_fontSize, I18n::Message::ConsolePrompt, 0, 0.5),
m_textField(this, m_textBuffer, m_draftTextBuffer, TextField::maxBufferSize(), delegate, true, ConsoleController::k_fontSize)
{
@@ -41,4 +43,8 @@ void ConsoleEditCell::setEditing(bool isEditing) {
m_textField.setEditing(isEditing);
}
void ConsoleEditCell::setText(const char * text) {
m_textField.setText(text);
}
}