This repository has been archived by the owner on Sep 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: Dynamic_title example, and Tools
- Loading branch information
Showing
8 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* MIT License | ||
# | ||
# Copyright (c) 2020 Ferhat Geçdoğan All Rights Reserved. | ||
# Distributed under the terms of the MIT License. | ||
# | ||
# */ | ||
|
||
#include <sstream> | ||
#include <fstream> | ||
#include <iostream> | ||
#include <FlaVersion.hpp> | ||
#include <Tokenizer.hpp> | ||
#include <Interpreter/Interpreter.hpp> | ||
#include <Interpreter/Read.hpp> | ||
#include <Interpreter/Tools.hpp> | ||
|
||
// Libraries | ||
#include <FileSystemPlusPlus.h> | ||
#include <Colorized.hpp> | ||
#include <SystemInfo.hpp> | ||
|
||
#ifdef WINDOWS | ||
#include <direct.h> | ||
#define GetCurrentDir _getcwd | ||
#else | ||
#include <unistd.h> | ||
#define GetCurrentDir getcwd | ||
#endif | ||
|
||
void | ||
FTools::TextBackground(int color) { | ||
printf("%c[%dm", ESC, 40+color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* MIT License | ||
# | ||
# Copyright (c) 2020 Ferhat Geçdoğan All Rights Reserved. | ||
# Distributed under the terms of the MIT License. | ||
# | ||
# */ | ||
|
||
#ifndef TOOLS_HPP | ||
#define TOOLS_HPP | ||
|
||
#include <iostream> | ||
#include <cstring> | ||
|
||
class FTools { | ||
public: | ||
void TextBackground(int); | ||
}; | ||
|
||
#endif // TOOLS_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
import(<info/SystemInfo.flsh>) -> time <- | ||
main() -> main { | ||
print(string) -> "Time: " | ||
put[time -> func -> GetTime() <-] | ||
print(newline) | ||
print(dynamic) -> set[title] -> "Hello World, Terminal :)" <- | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
main() -> main { | ||
print(dynamic) -> set[title] -> "Hello World, Terminal :)" <- | ||
} |