muddle/include/text.h
2024-02-05 19:47:10 -06:00

52 lines
1.8 KiB
C

/*
* Copyright (c) 2024 Scott Duensing, scott@kangaroopunch.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef TEXT_ZIP_H
#define TEXT_ZIP_H
#include "common.h"
#define STREAM_OUTPUT_SCREEN 1
#define STREAM_OUTPUT_TRANSCRIPT 2
#define STREAM_OUTPUT_MEMORY 3
#define STREAM_OUTPUT_SCRIPT 4
#define TEXT_ATTR_NORMAL 0
#define TEXT_ATTR_REVERSE 1
#define TEXT_ATTR_BOLD 2
#define TEXT_ATTR_EMPHASIS 4
#define TEXT_ATTR_FIXED_FONT 8
void textCharPrint(char c);
void textInput(uint32_t ramAddr, uint8_t length);
void textNumPrint(int16_t num);
void textObjectPrint(uint16_t object);
void textOutputStream(int16_t stream, int16_t options);
void textStringPrint(char *s);
void textTimePrint(uint16_t hours, uint16_t minutes);
#endif // TEXT_ZIP_H