← Back to team overview

ubuntu-phone team mailing list archive

Re: compiling and running the Telegram client telegram-cli on BQ (r24)

 

El día Thursday, August 13, 2015 a las 06:14:30PM +0100, Alan Pope escribió:

> On 13 August 2015 at 18:05, Matthias Apitz <guru@xxxxxxxxxxx> wrote:
> > El día Wednesday, August 12, 2015 a las 12:41:12PM -0400, Robert Schroll escribió:
> >> I have no idea if support for terminal apps is on a roadmap.  Perhaps
> >> someone else can comment here.
> >
> 
> We often discussed the possibility of a reusable "Terminal component"
> based off the existing code base. A developer such as yourself could
> grab that, add your app (mutt, irssi, whatever), modify a config file
> (to say what binary it should launch) and "click build" it. You'd get
> a click package which you could put in the store, which had the
> terminal inside it and your app. That way you have your own
> customisable terminal which you could tweak for the specific app.
> Perhaps setting the colour scheme, adding application specific
> shortcut keys to the keyboard overlay. When the user exists the app,
> the terminal closes (rather than drops to a shell).

I glanced through the code and I think the place to connect the terminal
app with the mutt-session, i.e. lauch there a script which invokes at
the end 'mutt' is in ubuntu-terminal-app/src/plugin/qmltermwidget/src/ksession.cpp
where the session is defined as:

    QString envshell = getenv("SHELL");
    QString shellProg = envshell != NULL ? envshell : "/bin/bash";
    session->setProgram(shellProg);

    setenv("TERM", "xterm", 1);

    //session->setProgram();

    QStringList args("");
    session->setArguments(args);
    session->setAutoClose(true);

    session->setCodec(QTextCodec::codecForName("UTF-8"));

    session->setFlowControlEnabled(true);
    session->setHistoryType(HistoryTypeBuffer(1000));

    session->setDarkBackground(true);

    session->setKeyBindings("");

    return session;

Do you agree?

	matthias


-- 
Matthias Apitz, ✉ guru@xxxxxxxxxxx, http://www.unixarea.de/  ☎ +49-176-38902045
No! Nein! ¡No! Όχι! -- Ευχαριστούμε!


References