VirtualBox

Changeset 68836 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Sep 22, 2017 4:37:46 PM (7 years ago)
Author:
vboxsync
Message:

IPRT: Added RTStrmIsTerminal and RTStrmQueryTerminalWidth.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mangling.h

    r68818 r68836  
    19331933# define RTStrmFlush                                    RT_MANGLER(RTStrmFlush)
    19341934# define RTStrmGetCh                                    RT_MANGLER(RTStrmGetCh)
    1935 # define RTStrmInputGetEchoChars                        RT_MANGLER(RTStrmInputGetEchoChars)
    19361935# define RTStrmGetLine                                  RT_MANGLER(RTStrmGetLine)
    19371936# define RTStrmOpen                                     RT_MANGLER(RTStrmOpen)
     
    19451944# define RTStrmReadEx                                   RT_MANGLER(RTStrmReadEx)
    19461945# define RTStrmRewind                                   RT_MANGLER(RTStrmRewind)
    1947 # define RTStrmInputSetEchoChars                        RT_MANGLER(RTStrmInputSetEchoChars)
    19481946# define RTStrmSetMode                                  RT_MANGLER(RTStrmSetMode)
    19491947# define RTStrmWriteEx                                  RT_MANGLER(RTStrmWriteEx)
     1948# define RTStrmIsTerminal                               RT_MANGLER(RTStrmIsTerminal)
     1949# define RTStrmInputGetEchoChars                        RT_MANGLER(RTStrmInputGetEchoChars)
     1950# define RTStrmInputSetEchoChars                        RT_MANGLER(RTStrmInputSetEchoChars)
     1951# define RTStrmQueryTerminalWidth                       RT_MANGLER(RTStrmQueryTerminalWidth)
    19501952# define RTStrNCmp                                      RT_MANGLER(RTStrNCmp)
    19511953# define RTStrNICmp                                     RT_MANGLER(RTStrNICmp)
  • trunk/include/iprt/stream.h

    r62473 r68836  
    148148
    149149/**
     150 * Checks if this is a terminal (TTY) or not.
     151 *
     152 * @returns true if it is, false if it isn't or the stream isn't valid.
     153 * @param   pStream         The stream.
     154 */
     155RTR3DECL(bool) RTStrmIsTerminal(PRTSTREAM pStream);
     156
     157/**
     158 * Gets the width of the terminal the stream is associated with.
     159 *
     160 * @returns IPRT status code.
     161 * @retval  VERR_INVALID_FUNCTION if not connected to a terminal.
     162 * @param   pStream         The stream.
     163 * @param   pcchWidth       Where to return the width.  This will never be zero
     164 *                          and always be set, even on error.
     165 */
     166RTR3DECL(int) RTStrmQueryTerminalWidth(PRTSTREAM pStream, uint32_t *pcchWidth);
     167
     168/**
    150169 * Rewinds the stream.
    151170 *
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette