From cdb2a40c8558ac2111d87ccf9fe5df14f75b449c Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 26 Mar 2018 00:47:00 +0200 Subject: [PATCH] add bla --- src/fenrirscreenreader/core/byteManager.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/fenrirscreenreader/core/byteManager.py diff --git a/src/fenrirscreenreader/core/byteManager.py b/src/fenrirscreenreader/core/byteManager.py new file mode 100644 index 00000000..9f5ded6a --- /dev/null +++ b/src/fenrirscreenreader/core/byteManager.py @@ -0,0 +1,21 @@ +#!/bin/python +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +from fenrirscreenreader.core import debug +import re + +class byteManager(): + def __init__(self): + pass + def initialize(self, environment): + self.env = environment + def shutdown(self): + pass + def unifyEscapeSeq(self, escapeSequence): + convertedEscapeSequence = escapeSequence + if convertedEscapeSequence[0] == 27: + convertedEscapeSequence = b'^[' + convertedEscapeSequence[1:] + return convertedEscapeSequence