Define wrapper functions around Curses. More...
Go to the source code of this file.
Macros | |
| #define | A_ITALIC 0 |
| #define | ctrl(ch) |
| Convert a letter to a control character (e.g., 'A' -> Ctrl-A). | |
| #define | key_is_return(ch) |
Enumerations | |
| enum | MuttCursorState { MUTT_CURSOR_INVISIBLE = 0 , MUTT_CURSOR_VISIBLE = 1 , MUTT_CURSOR_VERY_VISIBLE = 2 } |
| Cursor states for mutt_curses_set_cursor(). More... | |
Functions | |
| void | mutt_curses_set_color (const struct AttrColor *ac) |
| Set the colour and attributes for text. | |
| const struct AttrColor * | mutt_curses_set_color_by_id (enum ColorId cid) |
| Set the colour and attributes by the Colour ID. | |
| enum MuttCursorState | mutt_curses_set_cursor (enum MuttCursorState state) |
| Set the cursor state. | |
| const struct AttrColor * | mutt_curses_set_normal_backed_color_by_id (enum ColorId cid) |
| Set the colour and attributes by the Colour ID. | |
| void | mutt_resize_screen (void) |
| Update NeoMutt's opinion about the window size. | |
Define wrapper functions around Curses.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file mutt_curses.h.
| #define A_ITALIC 0 |
Definition at line 48 of file mutt_curses.h.
| #define ctrl | ( | ch | ) |
Convert a letter to a control character (e.g., 'A' -> Ctrl-A).
Definition at line 52 of file mutt_curses.h.
| #define key_is_return | ( | ch | ) |
Definition at line 57 of file mutt_curses.h.
| enum MuttCursorState |
Cursor states for mutt_curses_set_cursor().
| Enumerator | |
|---|---|
| MUTT_CURSOR_INVISIBLE | Hide the cursor. |
| MUTT_CURSOR_VISIBLE | Display a normal cursor. |
| MUTT_CURSOR_VERY_VISIBLE | Display a very visible cursor. |
Definition at line 63 of file mutt_curses.h.
| void mutt_curses_set_color | ( | const struct AttrColor * | ac | ) |
Set the colour and attributes for text.
| ac | Colour and Attributes to set |
Definition at line 38 of file mutt_curses.c.
Set the colour and attributes by the Colour ID.
| cid | Colour ID, e.g. MT_COLOR_TREE |
| ptr | Colour set |
Definition at line 79 of file mutt_curses.c.
| enum MuttCursorState mutt_curses_set_cursor | ( | enum MuttCursorState | state | ) |
Set the cursor state.
| state | State to set, e.g. MUTT_CURSOR_INVISIBLE |
| enum | Old state, e.g. MUTT_CURSOR_VISIBLE |
Definition at line 94 of file mutt_curses.c.
Set the colour and attributes by the Colour ID.
| cid | Colour ID, e.g. MT_COLOR_WARNING |
| ptr | Colour set |
Definition at line 63 of file mutt_curses.c.
| void mutt_resize_screen | ( | void | ) |
Update NeoMutt's opinion about the window size.
Definition at line 76 of file resize.c.