1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* mainproc.c (list_node): Show sigs with --verbose.

* options.h, g10.c (set_screen_dimensions): New function to look at
COLUMNS and LINES.

* keyserver.c (parse_keyrec, keyserver_search_prompt), keyedit.c
(print_and_check_one_sig): Use new screen dimension variables.
This commit is contained in:
David Shaw 2004-01-24 00:47:45 +00:00
parent f7447eabea
commit 385a19bd7b
6 changed files with 45 additions and 16 deletions

View file

@ -71,7 +71,6 @@ static int enable_disable_key( KBNODE keyblock, int disable );
static void menu_showphoto( KBNODE keyblock );
static int update_trust=0;
static int columns=80;
#define CONTROL_D ('D' - 'A' + 1)
@ -165,7 +164,7 @@ print_and_check_one_sig( KBNODE keyblock, KBNODE node,
else {
size_t n;
char *p = get_user_id( sig->keyid, &n );
tty_print_utf8_string2( p, n, columns-37 );
tty_print_utf8_string2( p, n, opt.screen_columns-37 );
m_free(p);
}
tty_printf("\n");
@ -1189,15 +1188,6 @@ keyedit_menu( const char *username, STRLIST locusr, STRLIST commands,
goto leave;
}
#ifndef _WIN32
if(getenv("COLUMNS"))
{
columns=atoi(getenv("COLUMNS"));
if(columns<80 || columns>255)
columns=80;
}
#endif
if( sign_mode ) {
commands = NULL;
append_to_strlist( &commands, sign_mode == 1? "sign":