mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Removed mch_input_isatty
This commit is contained in:
parent
a848fad656
commit
aea2e2cb12
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#define EXTERN
|
#define EXTERN
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "vim.h"
|
#include "vim.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
@ -1624,9 +1625,8 @@ static void handle_tag(char_u *tagname)
|
|||||||
*/
|
*/
|
||||||
static void check_tty(mparm_T *parmp)
|
static void check_tty(mparm_T *parmp)
|
||||||
{
|
{
|
||||||
int input_isatty; /* is active input a terminal? */
|
// is active input a terminal?
|
||||||
|
bool input_isatty = os_isatty(read_cmd_fd);
|
||||||
input_isatty = mch_input_isatty();
|
|
||||||
if (exmode_active) {
|
if (exmode_active) {
|
||||||
if (!input_isatty)
|
if (!input_isatty)
|
||||||
silent_mode = TRUE;
|
silent_mode = TRUE;
|
||||||
|
@ -182,16 +182,6 @@ void mch_init()
|
|||||||
event_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)
|
static int get_x11_title(int test_only)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
void mch_write(char_u *s, int len);
|
void mch_write(char_u *s, int len);
|
||||||
void mch_suspend(void);
|
void mch_suspend(void);
|
||||||
void mch_init(void);
|
void mch_init(void);
|
||||||
int mch_input_isatty(void);
|
|
||||||
int mch_can_restore_title(void);
|
int mch_can_restore_title(void);
|
||||||
int mch_can_restore_icon(void);
|
int mch_can_restore_icon(void);
|
||||||
void mch_settitle(char_u *title, char_u *icon);
|
void mch_settitle(char_u *title, char_u *icon);
|
||||||
|
Loading…
Reference in New Issue
Block a user