Removed mch_input_isatty

This commit is contained in:
Pavel Platto 2014-04-16 09:21:19 +03:00 committed by Thiago de Arruda
parent a848fad656
commit aea2e2cb12
3 changed files with 3 additions and 14 deletions

View File

@ -8,6 +8,7 @@
#define EXTERN
#include <string.h>
#include <stdbool.h>
#include "vim.h"
#include "main.h"
@ -1624,9 +1625,8 @@ static void handle_tag(char_u *tagname)
*/
static void check_tty(mparm_T *parmp)
{
int input_isatty; /* is active input a terminal? */
input_isatty = mch_input_isatty();
// is active input a terminal?
bool input_isatty = os_isatty(read_cmd_fd);
if (exmode_active) {
if (!input_isatty)
silent_mode = TRUE;

View File

@ -182,16 +182,6 @@ void mch_init()
event_init();
}
/*
* Return TRUE if the input comes from a terminal, FALSE otherwise.
*/
int mch_input_isatty()
{
if (isatty(read_cmd_fd))
return TRUE;
return FALSE;
}
static int get_x11_title(int test_only)
{
return FALSE;

View File

@ -7,7 +7,6 @@
void mch_write(char_u *s, int len);
void mch_suspend(void);
void mch_init(void);
int mch_input_isatty(void);
int mch_can_restore_title(void);
int mch_can_restore_icon(void);
void mch_settitle(char_u *title, char_u *icon);