[bim] Set title in VTE
This commit is contained in:
parent
244c1cedc8
commit
7d9978799d
@ -1972,11 +1972,9 @@ void update_title(void) {
|
||||
char cwd[1024] = {'/',0};
|
||||
getcwd(cwd, 1024);
|
||||
|
||||
/*
|
||||
* XXX: I think this only works in a few terminals.
|
||||
* VTE seems to have a different escape sequence for tab names.
|
||||
*/
|
||||
printf("\033]1;%s%s (%s) - BIM\007", env->file_name, env->modified ? " +" : "", cwd);
|
||||
for (int i = 1; i < 3; ++i) {
|
||||
printf("\033]%d;%s%s (%s) - BIM\007", i, env->file_name ? env->file_name : "[No Name]", env->modified ? " +" : "", cwd);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user