Skip to content

PurpleLUM4/OrbisTTY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OrbisTTY

OrbisTTY is a simple terminal-style text renderer for PlayStation 4 homebrew that provides a printf-like interface using sceVideoOut and FreeType for the OpenOrbis PS4 Toolchain.

Note: Fonts that were tested with OrbisTTY are stored in tested-fonts/
Note: Try avoiding using escape sequences like \n or \r (...)

Features

  • printf-style text output
  • Automatic line scrolling
  • FreeType font rendering
  • Double buffered rendering
  • Lightweight and easy to integrate

Required OpenOrbis libraries to link

  • -lc
  • -lkernel
  • -lc++
  • -lSceVideoOut
  • -lSceFreeType
  • -lSceSysmodule

Example

#include "OrbisTTY.h"

#define printf(...) OrbisTTY::orbis_printf(__VA_ARGS__)

int main() {
    if (!OrbisTTY::init("/app0/assets/fonts/Inconsolata-Regular.ttf"))
        return 1;

    for (int i = 0; ; i++)
        printf("Homebrew counter %d", i);

    return 0;
}

OpenOrbis PS4 Toolchain

OrbisTTY is an third-party additional library to the OpenOrbis PS4 Toolchain.

About

A simple terminal-style text renderer for PlayStation 4 homebrew that provides a printf-like interface using sceVideoOut and FreeType.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors