Re: [VTE] Alternative API for
- From: Nalin Dahyabhai <nalin redhat com>
- To: Biswapesh Chattopadhyay <biswapesh_chatterjee tcscal co in>
- Cc: gnome-devel-list gnome org, Naba Kumar <kh_naba gmx net>
- Subject: Re: [VTE] Alternative API for
- Date: Fri, 11 Apr 2003 10:12:01 -0400
On Fri, Apr 11, 2003 at 12:46:51PM +0530, Biswapesh Chattopadhyay wrote:
> We are trying to make anjuta use VTE instead of ZVT, but we're stuck
> because we need a replacement for zvt_term_forkpty. This is bacause
> we're listening to the pty for the password prompt (for handling CVS
> commands, etc.) and opening a dialog to get teh password from the user,
> which we're feeding back to the child process.
>
> Can you suggest how we can do this using VTE ?
The simplest thing is probably to use the AtkText interface to read
what's being displayed. The file src/reflect.c in the source tree is an
example of how to use the accessibility support to obtain and update a
copy of what's being displayed in the terminal and display it in a
GtkLabel.
Because the AT implementation models what is displayed to the user, and
not what's at the "bottom" of the history, you should probably disable
scrollback by calling vte_terminal_set_scrollback_lines() with a size of
0 (the size which actually gets used is the higher of the requested
value and the number of visible rows, so passing in 0 effectively
disables scrolling).
HTH,
Nalin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]