...
 
Commits (2)
  • Ercan Ersoy's avatar
    Some important changes · ec8f5869
    Ercan Ersoy authored
    Deleted unneded "DOS Applications" menu and its functions.
    Deleted unneded "Reboot" menu item and it functions.
    Deleted "Power Off Computer" menu item and it functions.
    Deleted menu seperator in Exit menu.
    Changed language files. Deleted unneded line of "DOSSHELL.FR".
    Fixed version number of help information of executable.
    ec8f5869
  • Ercan Ersoy's avatar
    Update screenshot · 27760d77
    Ercan Ersoy authored
    27760d77
No preview for this file type
......@@ -35,7 +35,7 @@ void command_run(char const* command)
system(command);
// Show end
printf(kittengets(0, 1, "\r\nPress any key to return to the DOSSHELL."));
printf(kittengets(1, 1, "\r\nPress any key to return to the DOSSHELL."));
getchar();
// Mouse initalization
......@@ -679,8 +679,10 @@ void show_file_manager(menuitem *, void *)
// Show file manager function
void show_run(menuitem *, void *)
{
// Input of command line
char* command = (char *)popup_input(reinterpret_cast<unsigned char const*>(kittengets(12, 0, "Run")), reinterpret_cast<unsigned char const*>(kittengets(12, 1, "Command to Run:")), reinterpret_cast<unsigned char const*>(""));
if(command)
if(command) // If command is not blank
{
// Run command
command_run(command);
......@@ -688,20 +690,6 @@ void show_run(menuitem *, void *)
}
// Run application EDIT function
void run_application_edit(menuitem *, void *)
{
// Run EDIT
command_run("EDIT");
}
// Run application EDLIN function
void run_application_edlin(menuitem *, void *)
{
// Run EDLIN
command_run("EDLIN");
}
// Quit function
void quit(menuitem *, void *)
{
......@@ -718,28 +706,6 @@ void quit(menuitem *, void *)
exit(EXIT_SUCCESS);
}
// Reboot function
void reboot(menuitem *, void *)
{
// Exit window manager
exit_window_manager(NULL, NULL);
// Reboot computer via FDAPM
system("FDAPM WARMBOOT");
return;
}
// Poweroff function
void poweroff(menuitem *, void *)
{
// Exit window manager
exit_window_manager(NULL, NULL);
// Poweroff computer via FDAPM
system("FDAPM POWEROFF");
}
// File Manager Menu Functions
......@@ -883,6 +849,7 @@ void rename_item(menuitem *, void *)
// Copy listbox item
item_name = get_item_name(item_name, directories_and_files->get_selected_first());
// Rename item to specified name
rename((char *)item_name, (char *)popup_input(reinterpret_cast<unsigned char const*>(kittengets(10, 0, "Rename")), reinterpret_cast<unsigned char const*>(kittengets(10, 1, "New Name:")), reinterpret_cast<unsigned char const*>("")));
// Refresh directories
......@@ -1120,12 +1087,12 @@ int main(int argc, char *argv[])
if(argv[1][0] == '/' && argv[1][1] == '?') // If help argument have used.
{
// Help message.
puts("FreeDOS TUI Shell 0.1");
puts("FreeDOS TUI Shell 0.2");
puts("");
puts(kittengets(0, 1, " FreeDOS TUI Shell is a TUI Shell for FreeDOS."));
puts(kittengets(0, 0, " FreeDOS TUI Shell is a TUI Shell for FreeDOS."));
puts("");
puts(kittengets(0, 2, " Copyright (C) 2018 Ercan Ersoy"));
puts(kittengets(0, 3, " FreeDOS TUI Shell licensed under GNU GPL version 3."));
puts(kittengets(0, 1, " Copyright (C) 2018 Ercan Ersoy"));
puts(kittengets(0, 2, " FreeDOS TUI Shell licensed under GNU GPL version 3."));
// Exit FreeDOS TUI Shell
return EXIT_SUCCESS;
......@@ -1138,7 +1105,7 @@ int main(int argc, char *argv[])
if(error) // If FDOSTUI initalization give error
{
// Display error message
puts(kittengets(0, 0, "Unable to initialze FDOSTUI subsystem."));
puts(kittengets(1, 0, "Unable to initialze FDOSTUI subsystem."));
// CLose Kitten Library
kittenclose();
......
......@@ -108,16 +108,8 @@ void change_to_upper_directory(menuitem *, void *);
void show_file_manager(menuitem *, void *);
// Show run function
void show_run(menuitem *, void *);
// Run application EDIT function
void run_application_edit(menuitem *, void *);
// Run application EDLIN function
void run_application_edlin(menuitem *, void *);
// Quit function
void quit(menuitem *, void *);
// Reboot function
void reboot(menuitem *, void *);
// Poweroff function
void poweroff(menuitem *, void *);
// Item open function
void item_open(menuitem *, void *);
// New directory function
......@@ -157,33 +149,22 @@ void show_system_items(menuitem *, void *);
// Internal applications menu of bar
struct menuitem internal_applications_menu[] =
{
{reinterpret_cast<unsigned char const*>(kittengets(1, 1, "File Manager")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, 0, show_file_manager, 0}, // File manager
{reinterpret_cast<unsigned char const*>(kittengets(1, 2, "Run")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, 0, show_run, 0}, // Run
{0}
};
// DOS applications menu of bar
struct menuitem dos_applications_menu[] =
{
{reinterpret_cast<unsigned char const*>("FreeDOS Edit"), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, 0, run_application_edit, 0}, // Edit
{reinterpret_cast<unsigned char const*>("FreeDOS Edlin"), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, 0, run_application_edlin, 0}, // Edlin
{reinterpret_cast<unsigned char const*>(kittengets(2, 1, "File Manager")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, 0, show_file_manager, 0}, // File manager
{reinterpret_cast<unsigned char const*>(kittengets(2, 2, "Run")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, 0, show_run, 0}, // Run
{0}
};
// Exit menu of bar
struct menuitem exit_menu[] =
{
{reinterpret_cast<unsigned char const*>(kittengets(3, 1, "Quit")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, MENUITEM_SEPERATOR, quit, 0}, // Quit
{reinterpret_cast<unsigned char const*>(kittengets(3, 2, "Reboot Computer")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, 0, reboot, 0}, // Reboot Computer
{reinterpret_cast<unsigned char const*>(kittengets(3, 3, "Power Off Computer")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, 0, poweroff, 0}, // Power Off Computer
{reinterpret_cast<unsigned char const*>(kittengets(3, 1, "Quit")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, 0, quit, 0}, // Quit
{0}
};
// Menubar of bar
struct menuitembar menus_of_bar[] =
{
{reinterpret_cast<unsigned char const*>(kittengets(1, 0, "Internal Applications")), 0, SCAN_NONE, internal_applications_menu}, // Internal Applications
{reinterpret_cast<unsigned char const*>(kittengets(2, 0, "DOS Applications")), 0, SCAN_NONE, dos_applications_menu}, // Dos Applications
{reinterpret_cast<unsigned char const*>(kittengets(2, 0, "Internal Applications")), 0, SCAN_NONE, internal_applications_menu}, // Internal Applications
{reinterpret_cast<unsigned char const*>(kittengets(3, 0, "Exit")), 0, SCAN_NONE, exit_menu}, // Exit
{0}
};
......
screenshot.png

5.09 KB | W: | H:

screenshot.png

5.52 KB | W: | H:

screenshot.png
screenshot.png
screenshot.png
screenshot.png
  • 2-up
  • Swipe
  • Onion skin