more legacy command line code cleanup

This commit is contained in:
Christopher A. Mosher 2022-12-13 00:03:26 -05:00
parent 7bab1ac971
commit e0f4ad5ccc
2 changed files with 0 additions and 35 deletions

View File

@ -301,35 +301,6 @@ void ScreenImage::blank() {
} }
} }
void ScreenImage::enterCommandMode() {
int r(76);
int c(1);
unsigned int* pn = this->pixels;
pn += r * FONTH * SCRW + c*FONTW;
memset((char*) pn, 0, SCRW * 4 * FONTH * 3);
drawText("command: ", 78, 1);
this->cmdpos = 9;
notifyObservers();
}
void ScreenImage::exitCommandMode() {
drawFnKeys();
notifyObservers();
}
void ScreenImage::addkeyCommand(unsigned char key) {
++this->cmdpos;
drawChar((char) key, 78, this->cmdpos);
}
void ScreenImage::backspaceCommand() {
drawChar(' ', 78, this->cmdpos);
--this->cmdpos;
}
void ScreenImage::updateSlotName(const int slot, Card* card) { void ScreenImage::updateSlotName(const int slot, Card* card) {
int r(R_SLOT + slot); int r(R_SLOT + slot);
int c(20); int c(20);

View File

@ -38,7 +38,6 @@ private:
bool fullscreen; bool fullscreen;
bool buffer; bool buffer;
AnalogTV::DisplayType display; AnalogTV::DisplayType display;
unsigned int cmdpos;
void createScreen(); void createScreen();
std::vector<std::string> slotnames; std::vector<std::string> slotnames;
std::string cassInName; std::string cassInName;
@ -73,11 +72,6 @@ public:
void updateSlotName(const int slot, Card* card); void updateSlotName(const int slot, Card* card);
void removeCard(const int slot, Card* card /* empty */); void removeCard(const int slot, Card* card /* empty */);
void enterCommandMode();
void exitCommandMode();
void addkeyCommand(unsigned char key);
void backspaceCommand();
void setDiskFile(int slot, int drive, const std::filesystem::path& filename); void setDiskFile(int slot, int drive, const std::filesystem::path& filename);
void setAnnunciator(int ann, bool on); void setAnnunciator(int ann, bool on);