Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
edit_state.cpp
00001 #include "system_states.hpp" 00002 #include "system.hpp" 00003 #include "display_manager.hpp" 00004 00005 void EditState::enterState() { 00006 DisplayManager *display = system()->display(); 00007 display->hideCursor(); 00008 display->writeStatus("Edit: <*>Cmd"); 00009 updateText(); 00010 } 00011 00012 void EditState::handleKey(char key) 00013 { 00014 if (key == '@') { 00015 system()->setState(System::Command); 00016 } 00017 else if (key == '$') { 00018 // ignored for the time being 00019 } 00020 else { 00021 handleSymbol(key); 00022 } 00023 } 00024 00025 void EditState::handleSymbol(char ch) const { 00026 system()->insertSymbol(ch); 00027 updateText(); 00028 } 00029
Generated on Wed Jul 13 2022 16:23:43 by
 1.7.2