mirror of
https://github.com/cmosher01/Epple-II.git
synced 2024-12-27 02:32:27 +00:00
more legacy command line code cleanup
This commit is contained in:
parent
7bab1ac971
commit
e0f4ad5ccc
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user