mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 08:21:56 +08:00
Modified input.cpp, output.cpp to use env_get_string()
This commit is contained in:
parent
15296dedd5
commit
72cfdbbb4e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user