author | llornkcor <llornkcor> | 2002-02-03 14:15:02 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-03 14:15:02 (UTC) |
commit | e26c1409462b6c9c4931a5fa13c121f492747c27 (patch) (side-by-side diff) | |
tree | 066700138630d3167ac44d8f4e5850a3b294d0ba | |
parent | ee82c470b34819d24de543b30f150788fb58b2f1 (diff) | |
download | opie-e26c1409462b6c9c4931a5fa13c121f492747c27.zip opie-e26c1409462b6c9c4931a5fa13c121f492747c27.tar.gz opie-e26c1409462b6c9c4931a5fa13c121f492747c27.tar.bz2 |
added clear to commandlist
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index 653652a..1016885 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp @@ -61,96 +61,97 @@ public: int m=INT_MIN; for (int i=0; i<count(); i++) { QTab* left=0; QListIterator<QTab> it(*tabList()); int x=INT_MAX; for( QTab* t; (t=it.current()); ++it ) { int tx = t->rect().x(); if ( tx<x && tx>m ) { x = tx; left = t; } } if ( left ) { left->setText(QString::number(i+1)); m = left->rect().x(); } } } }; class EKNumTabWidget : public QTabWidget { public: EKNumTabWidget(QWidget* parent) : QTabWidget(parent) { } void addTab(QWidget* w) { QTab* t = new QTab(QString::number(tabBar()->count()+1)); QTabWidget::addTab(w,t); } void removeTab(QWidget* w) { removePage(w); ((EKNumTabBar*)tabBar())->numberTabs(); } }; // This could be configurable or dynamicly generated from the bash history // file of the user static const char *commonCmds[] = { "ls ", // I left this here, cause it looks better than the first alpha "cardctl eject", "cat ", "cd ", "chmod ", + "clear", "cp ", "dc ", "df ", "dmesg", "echo ", "env", "find ", "free", "grep ", "ifconfig ", "ipkg ", "mkdir ", "mv ", "nc localhost 7776", "nc localhost 7777", "nslookup ", "ping ", "ps aux", "pwd ", "rm ", "rmdir ", "route ", "set ", "traceroute", /* "gzip", "gunzip", "chgrp", "chown", "date", "dd", "df", "dmesg", "fuser", "hostname", "kill", "killall", "ln", "ping", "mount", "more", "sort", "touch", "umount", "mknod", "netstat", */ |