Browse Source

Add TTY flag to KTP status

Serj Kalichev 7 months ago
parent
commit
553669815d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      klish/ktp.h

+ 2 - 0
klish/ktp.h

@@ -49,6 +49,7 @@ typedef enum {
 	KTP_STATUS_ERROR =		(uint32_t)0x00000001,
 	KTP_STATUS_INCOMPLETED =	(uint32_t)0x00000002,
 	KTP_STATUS_INTERACTIVE =	(uint32_t)0x00000100,
+	KTP_STATUS_TTY =		(uint32_t)0x00000200,
 	KTP_STATUS_DRY_RUN =		(uint32_t)0x00010000,
 	KTP_STATUS_EXIT =		(uint32_t)0x80000000,
 } ktp_status_e;
@@ -56,6 +57,7 @@ typedef enum {
 #define KTP_STATUS_IS_ERROR(status) (status & KTP_STATUS_ERROR)
 #define KTP_STATUS_IS_INCOMPLETED(status) (status & KTP_STATUS_INCOMPLETED)
 #define KTP_STATUS_IS_INTERACTIVE(status) (status & KTP_STATUS_INTERACTIVE)
+#define KTP_STATUS_IS_TTY(status) (status & KTP_STATUS_TTY)
 #define KTP_STATUS_IS_DRY_RUN(status) (status & KTP_STATUS_DRY_RUN)
 #define KTP_STATUS_IS_EXIT(status) (status & KTP_STATUS_EXIT)