3 Commits
Author SHA1 Message Date
david 3b16b2141e test
ci / unix (macos-15) (push) Failing after 2s
ci / unix (macos-15-intel) (push) Failing after 2s
ci / unix (ubuntu-24.04) (push) Successful in 1m26s
ci / unix (ubuntu-24.04-arm) (push) Successful in 14s
ci / freebsd (push) Failing after 13m54s
ci / windows (push) Canceled after 0s
release / dist (push) Canceled after 0s
release / build (, macos-arm64, macos-15) (push) Canceled after 0s
release / build (, macos-x86_64, macos-15-intel) (push) Canceled after 0s
release / build (-static, linux-aarch64, ubuntu-24.04-arm) (push) Canceled after 0s
release / build (-static, linux-x86_64, ubuntu-24.04) (push) Canceled after 0s
release / windows (push) Canceled after 0s
release / release (push) Canceled after 0s
2026-10-11 18:53:21 -03:00
david d77d131661 started colors, i have a things noted on the side that's not in the repo but i have most of the functions planned 2026-10-11 03:14:19 -03:00
david 0b9d62202a fixed readme for cgit i hope it doesn't break github 2026-10-09 21:27:40 -03:00
6 changed files with 106 additions and 16 deletions

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
<div align=center>
<div align="center" markdown="1">
<img width="866" height="711" alt="image" src="https://github.com/user-attachments/assets/81ed5996-5643-4d19-a27a-0ab740f320c7" />
Generated Vendored
+10 -10
View File
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.73 for mikusays 0.1.1.
# Generated by GNU Autoconf 2.73 for mikusays 0.2.0.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2026 Free Software Foundation,
@@ -584,8 +584,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='mikusays'
PACKAGE_TARNAME='mikusays'
PACKAGE_VERSION='0.1.1'
PACKAGE_STRING='mikusays 0.1.1'
PACKAGE_VERSION='0.2.0'
PACKAGE_STRING='mikusays 0.2.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL='https://github.com/davideldios7/mikusays'
@@ -1281,7 +1281,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
'configure' configures mikusays 0.1.1 to adapt to many kinds of systems.
'configure' configures mikusays 0.2.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1348,7 +1348,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of mikusays 0.1.1:";;
short | recursive ) echo "Configuration of mikusays 0.2.0:";;
esac
cat <<\_ACEOF
@@ -1443,7 +1443,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
mikusays configure 0.1.1
mikusays configure 0.2.0
generated by GNU Autoconf 2.73
Copyright (C) 2026 Free Software Foundation, Inc.
@@ -1555,7 +1555,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by mikusays $as_me 0.1.1, which was
It was created by mikusays $as_me 0.2.0, which was
generated by GNU Autoconf 2.73. Invocation command line was
$ $0$ac_configure_args_raw
@@ -3171,7 +3171,7 @@ fi
# Define the identity of the package.
PACKAGE='mikusays'
VERSION='0.1.1'
VERSION='0.2.0'
printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -5437,7 +5437,7 @@ cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by mikusays $as_me 0.1.1, which was
This file was extended by mikusays $as_me 0.2.0, which was
generated by GNU Autoconf 2.73. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -5497,7 +5497,7 @@ ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
mikusays config.status 0.1.1
mikusays config.status 0.2.0
configured by $0, generated by GNU Autoconf 2.73,
with options \\"\$ac_cs_config\\"
+3 -2
View File
@@ -6,11 +6,12 @@
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <stdbool.h>
#include "helper.h"
//COLORS.C
void Void(void); //function that does FUCKING NOTHING BECAUSE MY STUPID LSP THINK I'M NOT USING THIS FUCKING FILE AND GIVES ME A WARNINGGENROENIGGHUIOAGHUIHUIAUHIDFG
//COLORS.C
#include "colors.h"
#endif
+50
View File
@@ -0,0 +1,50 @@
#ifndef COLORS_H
#define COLORS_H
#include <stdlib.h>
#include <stdbool.h>
typedef enum color_mode {
MODE_NONE,
MODE_ANSI16,
MODE_ANSI256,
MODE_TRUECOLOR
}color_mode;
typedef enum NamedColor {
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
BrightBlack,
BrightRed,
BrightGreen,
BrightYellow,
BrightBlue,
BrightMagenta,
BrightCyan,
BrightWhite,
}NamedColor;
typedef struct{
int red;
int green;
int blue;
}rgbcolor;
typedef struct colorconfig {
enum color_mode mode;
bool has_solid_color;
rgbcolor solid_color;
bool rainbow_enabled; //flag
int saturation; //default 100
int brightness; //default 50
char **rainbow_cache; //array of rgb_color malloced
size_t rainbow_count;
}colorconfig;
#endif
+42 -2
View File
@@ -1,3 +1,43 @@
#include "../defs/all.h"
//i'm gonna do this later
void Void(void){};
#include <stdlib.h>
#include <string.h>
#include <strings.h>
void colorconfig_init(colorconfig config){
config.saturation = 100;
config.brightness = 50;
}
enum color_mode detect_color_mode(void){
const char *colorterm, *term;
if(getenv("NO_COLOR"))
return MODE_NONE;
colorterm = getenv("COLORTERM");
if(colorterm && (strstr(colorterm, "truecolor") || strstr(colorterm, "24bit")))
return MODE_TRUECOLOR;
term = getenv("TERM");
if(term && strstr(term, "256color"))
return MODE_ANSI256;
return MODE_ANSI16;
}
#ifdef _WIN32
//i'll do this later
#endif
char parse_namedcolors(rgbcolor name, char *outrgb){
/*
table = array of { name_string, rgb } for the 16 colors
normalized = lowercase copy of name, with "_" removed // so that it handles bright_red and brightred
for each entry in the table:
if normalized equals entry.name -> out_rgb = entry.rgb, return success
return fail
*/
}
-1
View File
@@ -279,7 +279,6 @@ void draw_miku_says(char *text, int style){
}
int main(int argc, char **argv){
Void(); //look at all.h
srand(time(NULL));
getterminalsize();