mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Modified input.cpp, output.cpp to use env_get_string()
This commit is contained in:
parent
15296dedd5
commit
72cfdbbb4e
3 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
2
output.h
2
output.h
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue