Skip to content

Commit

Permalink
Shell: Sending commands to the server using libshell
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 27, 2013
1 parent 6861201 commit e00eb3c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doomsday/tools/shell/shell-text/src/shellapp.cpp
Expand Up @@ -77,8 +77,9 @@ struct ShellApp::Instance
ShellApp::ShellApp(int &argc, char **argv)
: CursesApp(argc, argv), d(new Instance(*this))
{
LogBuffer::appBuffer().setMaxEntryCount(50); // buffered here rather than appBuffer
LogBuffer::appBuffer().addSink(d->log->logSink());
LogBuffer &buf = LogBuffer::appBuffer();
buf.setMaxEntryCount(50); // buffered here rather than appBuffer
buf.addSink(d->log->logSink());

QStringList args = arguments();
if(args.size() > 1)
Expand All @@ -98,7 +99,8 @@ ShellApp::~ShellApp()

void ShellApp::sendCommandToServer(String command)
{
LOG_MSG("%s") << command;
LOG_INFO(">") << command;

// todo
QScopedPointer<Packet> packet(d->link->protocol().newCommand(command));
*d->link << *packet;
}

0 comments on commit e00eb3c

Please sign in to comment.