Request the window title with terminal control codes, and parse the result.

The title, as well as screen height & width are now saved to sql->sessions



git-svn-id: https://kippo.googlecode.com/svn/trunk@144 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2010-06-28 13:17:46 +00:00
parent 3779ba2471
commit 00664d251a
5 changed files with 81 additions and 2 deletions

View File

@@ -31,6 +31,8 @@ CREATE TABLE IF NOT EXISTS `sessions` (
`endtime` datetime default NULL,
`sensor` int(4) NOT NULL,
`ip` varchar(15) NOT NULL default '',
`termsize` varchar(7) default NULL,
`termtitle` varchar(255) default NULL,
PRIMARY KEY (`id`),
KEY `starttime` (`starttime`,`sensor`)
) ;