Modified input.cpp, output.cpp to use env_get_string()

This commit is contained in:
Siteshwar Vashisht 2012-01-12 23:11:07 +05:30
parent 15296dedd5
commit 72cfdbbb4e
3 changed files with 3 additions and 3 deletions

View file

@ -324,7 +324,7 @@ int input_init()
debug( 0, _( L"Could not set up terminal" ) );
exit(1);
}
output_set_term( env_get( L"TERM" ) );
output_set_term( env_get_string( L"TERM" ).c_str() );
input_terminfo_init();

View file

@ -587,7 +587,7 @@ int output_color_code( const wchar_t *val )
}
void output_set_term( wchar_t *term )
void output_set_term( const wchar_t *term )
{
current_term = halloc_wcsdup(global_context, term);
}

View file

@ -154,7 +154,7 @@ int (*output_get_writer())(char) ;
/**
Set the terminal name
*/
void output_set_term( wchar_t *term );
void output_set_term( const wchar_t *term );
/**
Return the terminal name
*/