From 9fbbf871f2aed932637ed42c900cdc36ee63afa5 Mon Sep 17 00:00:00 2001 From: Ale2610 Date: Tue, 25 Aug 2015 18:01:27 +0200 Subject: [PATCH] Create sertexID --- src/apps/system/sertexID | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/apps/system/sertexID diff --git a/src/apps/system/sertexID b/src/apps/system/sertexID new file mode 100644 index 0000000..bb3bc13 --- /dev/null +++ b/src/apps/system/sertexID @@ -0,0 +1,22 @@ +local function clear() + term.setBackgroundColor(colors.white) + term.setTextColor(colors.black) + term.clear() + term.setCursorPos(1,1) +end + +local function header() + clear() + local w, h = term.getSize() + paintutils.drawLine(1,1,w,1, colors.gray) + term.setTextColor(colors.white) + term.setCursorPos(1,1) + write(" "..sPhone.user) + term.setCursorPos(w,1) + write("X") + term.setCursorPos(1,2) + term.setBackgroundColor(colors.white) + term.setTextColor(colors.black) +end + +header()