l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
December 15: Cloud Computing and Hosting
Next Installfest:
TBA
Latest News:
Nov. 18: Officers elected
Page last updated:
2004 Dec 12 15:00
Events
 Meetings
 Installfests
 Demos
 Photos
Services
 Library
 LERT
 Jobs
 Documents
Interact
 Mailing Lists
 - Search
 - Archives
 Chat (IRC)
 Social Networks
About Us
 Members
 Projects
 Testimonials
 Call for Speakers
 Why Not MS?
 Finances
 Sponsors

^Home
?Search
?News & RSS
?Calendar
@Contact Us
$Buy Stuff
=Printable


The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Xterm and terminal types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Xterm and terminal types



On Sun, 12 Dec 2004 08:46:42 -0800
Rod Roark <rod@sunsetsystems.com> wrote:

> On Saturday 11 December 2004 06:13 pm, Ken Bloom wrote:
> > http://developer.gnome.org/doc/API/2.0/vte/vteterminal.html
> > 
> > look at vte_terminal_set_emulation()
> > 
> > You may need to add this line to the appropriate place in Gnome
> > Terminal, but I don't know what it is.
> > 
> > As always, reply when you've tried it so that the googlers can find
> > out whether it worked.
> 
> Thanks Ken.  It will be a few days before I can try anything,
> but it appears I can build VTE with the configure option
> "--with-default-emulation=scoansi".  Perhaps that would be
> sufficient, since grepping the gnome-terminal source for
> "vte_terminal_set_emulation" yields no matches.

I haven't gotten this to work (ls spits out random junk, clear complains that it doesn't know what an scoansi termianl is, vim looks strange, and also complains that it doesn't know what an scoansi is), but is it possible you want code like this?

Note that you'll want to install the appropriate package containing a termcap file. Debian doesn't install one unless something depends on it.

--- gnome-terminal-orig/src/terminal-screen.c 2004-12-12 10:24:57.000000000 -0800
+++ gnome-terminal-2.8.0/src/terminal-screen.c  2004-12-12 10:43:49.000000000 -0800
@@ -1069,7 +1069,7 @@
 
   retval[i] = g_strdup ("COLORTERM="EXECUTABLE_NAME);
   ++i;
-  retval[i] = g_strdup ("TERM=xterm"); /* FIXME configurable later? */
+  retval[i] = g_strdup ("TERM=scoansi"); /* FIXME configurable later? */
   ++i;
   retval[i] = g_strdup_printf ("WINDOWID=%ld",
                                GDK_WINDOW_XWINDOW (term->window));
diff -uNr gnome-terminal-orig/src/terminal-widget-vte.c gnome-terminal-2.8.0/src/terminal-widget-vte.c
--- gnome-terminal-orig/src/terminal-widget-vte.c 2004-12-12 10:24:57.000000000 -0800
+++ gnome-terminal-2.8.0/src/terminal-widget-vte.c      2004-12-12 10:43:49.000000000 -0800
@@ -64,6 +64,7 @@
   terminal = vte_terminal_new ();
 
   vte_terminal_set_mouse_autohide(VTE_TERMINAL(terminal), TRUE);
+  vte_terminal_set_emulation(VTE_TERMINAL(terminal), "scoansi");
   
   data = g_new0 (VteData, 1);
 

-- 
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.

Attachment: pgp00012.pgp
Description: PGP signature

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


LinkedIn
LUGOD Group on LinkedIn
facebook
LUGOD Group on Facebook

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
1105 Kennedy Place, Suite 1, Davis, CA 95616
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
California Computer News
Who donated books and ad space.